I’m cleaning up CSS from a previous designer. The file is messy. One example I’m pretty sure is redundant, I’d just like a confirmation to ease my conscience.
body h2{...}
Declaring just h2 would be sufficient here, right?
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.
You would use
body h2{...}only if you wanted to override an existingh2 {...}declaration. Declaringh2on its own is perfectly acceptable otherwise.