views:

16

answers:

1

Hello!

Is there a way to do something like this in CSS2 (not 3)? h2:first{bla bla;}

Thank you!

+1  A: 

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

corroded
Thank you, corroded.
Francisc
always glad to be of help :)
corroded