Reputation:
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?
Upvotes: 0
Views: 42
Reputation: 9027
Yup. As far as I know, the place where IE6 caves is if you try to give a single HTML object multiple classes, where it will only read the last class and apply styles accordingly.
Upvotes: 0
Reputation: 54021
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.
Upvotes: 2