The Muwi innovation lawn mower takes grass cuttings and turns them into something fun. The blocks can become balls for children to play with or be combined to make a chair or anything else you can think of.
Most browsers will apply this to any P tags with both the class disclosure and warning. IE6, however, will only apply this to P tags with the last class mentioned; in this case, P tags with the class warning. so IE6 pretends like you wrote:
1
p.warning{text-align:center;color:red;}/* no .disclosure */
Workarounds are typically not hard, but staying aware of this fact will save you time debugging.
IE will ignore the the second rule. So even if you have a
1
<divid="tooltip"class="yellow">I'm on a black background in yellow text!</div>
, IE will not apply the CSS styles you had defined for it. If you have laid our rules for the same ID but different classes, it will ignore all CSS rules defined after the first one. (Your red tooltip will be fine).
Solutions:
Don’t let the #id.class combo be the last selector: Multiple selectors of this type #tooltip.yellow div will be fine.
Move the class to a parent container: div.yellow #tooltip will not mess up anything.
Make your classes be superspecific and dont use an ID in your selector: div.yellowtooltip. You’ll have to repeat yourself with duplicate CSS definitions, but you can thank IE6 for making your day miserable, yet again. :)