Though filters can work, you should be wary of rewriting CSS rules for good browsers
in order to avoid problems with bad browsers??”it just doesn??™t seem to be the right
thing to do. It??™s preferable to target problematic browsers and keep your style sheets
uncluttered.
The Star Selector Hack
The star selector hack,9 also known as the star-HTML hack and the Tan hack, because
it was first described in detail by Edwardson Tan, is the most widely used filter; it
9 http://www.info.com.ph/~etan/w3pantheon/style/starhtmlbug.html
403 Workarounds, Filters, and Hacks
relies on a peculiar behavior in Internet Explorer 5.5 and 6. Even though it??™s often
labeled a hack, I??™ve included it in this section on filters because, despite the fact
that it exploits a browser bug, it uses a valid CSS selector. The selector, however,
should never match any elements; all browsers, except Internet Explorer 5.5 and 6,
understand this fact and ignore the rule.
The technique is simply to apply a descendant selector that makes use of the
universal selector.
Pages:
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585