You should not use css hacks
… because css hacks are bad, bad, bad. Will not be supported in the future and there are better ways to do the same thing if you work hard enough. But, I am lazy and want to use one css file to work on different browsers. So here they are, hacks to hide certain styles properties from specific browsers (IEs that is…). Ask your doctor if css hacks are right for you.
Commented Backslash hack (hides styles from IE/Mac):
/*start iemac hide \*/
YOUR SELECTOR {
PROPERTY: VALUE;
}
/*end iemac hide*/
Underscore hack (gives values to IE/Win only):
YOUR SELECTOR {
PROPERTY: VALUE;
_PROPERTY: VALUE;
}
Star HTML hack (gives values to IE/Win only):
* html YOUR SELECTOR {
PROPERTY: VALUE;
}
(See this discussion board to see why they work.)
