Prev | Current Page 580 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

The hack looks like this:
@import "null.css?\"\{";
@import "highpass.css";
This actually constitutes valid CSS. The first statement attempts to import a file
from the URI null.css?"{, which is an empty file, while the second statement imports
the desired style sheet. Internet Explorer 6 and up, Internet Explorer 5 for Mac,
Netscape 6 and up, and Opera 5 and up could read these two statements correctly,
but older browsers got caught up on the escape characters and failed to load any
style sheets.
Workarounds, Filters, and
Hacks
13 http://tantek.com/CSS/Examples/highpass.html
The Ultimate CSS Reference 408
Summary
Coping with browser differences is a way of life for the CSS practitioner. Although
filters should be avoided wherever possible, you may encounter situations in which
a design change isn??™t possible or feasible, and a browser??™s behavior is so problematic
that the only way you can solve the problem is to apply some sort of CSS filter.
Hacks, however, should be avoided at all costs.


Pages:
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592