Is there a way to do something like this in CSS2 (not 3)?
h2:first{bla bla;}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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