High Pass Filter

From CSS Discuss

Jump to: navigation, search

Another Tantek hack, this time to elegantly hide CSS rules from older browsers that may interpret them incorrectly.


Here also is a variant, the Inline High Pass Filter:


Keep it simple.

#bar { position: relative; content:"\"/*"}
#bar { position: absolute; top: 0; right: 0; content:"\"*/"}

Put rules for all browsers first, and override them between "\"/*" and "\"*/" pseudo-comments.

IE6.0 use all rules. IE4.0 ignores rules between /* */ IE5.0 and IE5.5, ignores rules after /* till end of stylesheet.

Personal tools