In firefox the following CSS is only applied to the last div, as its the only div with both classes:
.a.b {
color: red;
}
<div class="a"> Stuff A</div>
<div class="b"> Stuff B</div>
<div class="a b"> Stuff A and B</div>
Is this valid CSS? Im just worried as ive never heard of it before.
Thanks
This is valid css. Almost all browsers support multiple class selector except ie6
Source:
http://www.maxdesign.com.au/articles/multiple-classes/