Pseudo Comment Hack

From CSS Discuss

Jump to: navigation, search

A Css Hack .

#bar { voice-family:"\"/*"; voice-family:"\"*/"; <IE4> }
#bar { voice-family:"\"/*"; <IE5.0>,<IE5.5>,<IE6.0> voice-family:"\"*/" }
#bar { <IE4>,<IE5.0>,<IE6.0> }

IE5.5 will ignore all rules below content:"\"*/" till end of stylesheet

Example:

#hits { voice-family:"\"/*"; voice-family:"\"*/"; position: relative; }
#hits { voice-family:"\"/*"; position: absolute; top: 0; right: 0; }
#three #content { margin-right: 30.5ex; voice-family:"\"*/"}
Personal tools