Hello!
Is there a way to do something like this in CSS2 (not 3)? h2:first{bla bla;}
Thank you!
Hello!
Is there a way to do something like this in CSS2 (not 3)? h2:first{bla bla;}
Thank you!
Yup,
"The :first-child pseudo-class matches an element that is the first child element of some other element." - from http://www.w3.org/TR/CSS2/selector.html
There's also a listing of all available selectors in CSS2. Be warned though, most of these are not available in lower versions of IE