Star Html Hack

From CSS Discuss

Jump to: navigation, search

This Css Hack shows rules to Internet Explorer on Mac and Windows. When in Standards Compatibility mode, IE7 does not apply rules that use this hack. Working example on Emulating Fixed Positioning .

/* the following rules apply only to IE6 */
* html{
}

* html body{
}

* html .foo{
}

Only for IE7

/* the following rules apply only to IE7 */
*+html .foo{
}


See also

Personal tools