I am currently using this way of declaring multiple styles in a stylesheet:
#elem1, #elem2{
float:right;
}
.elem3, .elem4{
float:left;
}
#elem1, #elem2 h2{
font-size:20px;
}
I wonder if this is supported by major browsers, even IE6?
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.
Yes, it sure is. This is a pretty standard way of declaring styles for multiple selectors and has been supported by all major browsers (even IE6) for a long time.