At some time in the future when
the targeted CSS is no longer required, the code, which is already separated, can
easily be removed.
Workarounds and Filters
The art of selectively applying CSS to specific browsers probably began with the
exclusion of Netscape Navigator 4. It was discovered that if you used a media value
of anything except "screen" on a style sheet link element, Netscape 4 would ignore
the style sheet. At the time, it was considered safer to avoid attempting to apply
CSS to Netscape because it was so buggy that the CSS was likely to crash the browser.
Not long after that, it was discovered that Netscape didn??™t support the @import
at-rule. Simply using @import url(styles/main.css); achieved the same result
and had the added benefit of excluding all other browsers that provided poor CSS
401 Workarounds, Filters, and Hacks
support, like Internet Explorer 4. Thus the concept of filtering out browsers through
the use of more advanced CSS features gained popularity.
Before you dive into CSS filtering, however, you should take a considered approach
to dealing with CSS rendering problems:
1.
Pages:
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581