Use double classes in IE6 CSS?

IE6 doesn't support multiple class selectors. The reason you see a change with the Orange class is because a.MenuButton. Orange is interpreted by IE6 as a.

Orange I recommend structuring your markup in such a way that you can work around this: div class="leftcontent"> One Two Navmenu a. Orange { /* ... extra orange ... */ } . Leftcontent .

Navmenu a. Clicked { /* ... bold text ... */ } It's not as good as multiple classes, but I've used it to work around the lack of support in IE.

IE6 doesn't support multiple class selectors. The reason you see a change with the Orange class is because a.MenuButton. Orange is interpreted by IE6 as a.Orange.

I recommend structuring your markup in such a way that you can work around this: One Two By grouping by a more specific ancestor you can create variation with classes scoped by that ancestor (in this example navmenu): . Leftcontent . Navmenu a { /* ... basic styles ... */ } .

Leftcontent . Navmenu a. Orange { /* ... extra orange ... */ } .

Leftcontent . Navmenu a. Clicked { /* ... bold text ... */ } It's not as good as multiple classes, but I've used it to work around the lack of support in IE.

If I could, I'd triple Up your answer :) Saved me from jumping from a bridge :) – bisko Nov 10 '10 at 11:50.

Dean Edwards' IE7 script adds multiple class support for IE6. See code.google.com/p/ie7-js.

Oh my gosh, it's miracle ... – xmedeko Oct 25 at 8:45.

If I use (like I wrote in the question), tag-specific rules, like . LeftContent a.MenuButton. Orange, it works... It only matches them if the classes in the selector are in the same order as the classes on the element.

This isn't quite true. IE6 (and IE7 in Quirks Mode) only remembers one class per selector-part. If you write two, the second one overrides the first.So ‘a.MenuButton.

Orange’ is identical in effect to ‘a. Orange’. So multiple class selectors do still have to be avoided for now.

1. This is what I had originally written, but the internets had other things to say and I foolishly believed it without testing. I have rolled back my edits and hung my head in shame.

– Borgar Nov 23 '08 at 18:33 lol, don't go overboard on the shame, it's only SO :-) – bobince Nov 23 '08 at 22:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions