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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -