html - When did browsers start supporting multiple classes per tag? -
you can use more 1 css class in html tag in current web browsers, e.g.:
<div class="style1 style2 style3">foo bar</div>
this hasn't worked; versions did major browsers begin correctly supporting feature?
@wayne kao - ie6 has no problem reading more 1 class name on element, , applying styles belong each class. article referring creating new styles based on combination of class names.
<div class="bold italic">content</div> .bold { font-weight: 800; } .italic { font-style: italic; {
ie6 apply both bold , italic styles div. however, wanted elements have bold , italic classes purple. in firefox (or possibly ie7, not sure), write this:
.bold.italic { color: purple; }
that not work in ie6.
Comments
Post a Comment