> The other thing i missed was the need to use double colons, like ::before - I 
> tried only ':before'. What's the reason?

:before is CSS2.  ::before is CSS3.

In CSS3, double colons go before pseudo-elements (first-line, first-letter, 
before, after), while single colons go before pseudo-classes (first-child, 
only-of-type, nth-child, etc).  Since only-of-type is a CSS3 pseudo class, it's 
enforcing the CSS3 syntax.

The spec: http://www.w3.org/TR/2009/WD-css3-selectors-20090310/#pseudo-elements 
(pseudo-classes are the 

---Tim

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to