Is there a more concise way of writing this CSS?
.vertical > a:link,
.vertical > a:visited,
.vertical > a:hover,
.vertical > a:active
{color:blue;}
I am just looking to select all the a pseudoclasses inside a .vertical div and set all to blue.
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.
This should work:
It is common to have a stronger rule that overrides it though, so you may have to use the pseudo-classes to create an equally strong rule, or use
!importantor other selectors to see the effects.