11 July 2012

Hide CSS rule from IE7

This is clearly a hack, but a quick and dirty solution that works nicely in hiding a CSS rule from IE7, but show it to modern browser:
html>/**/body .my-css-rule-name {
   /* some CSS */
}
Thanks to David Hammond's CSS Hacks page.

No comments: