I thought I has already posted something on this, but I guess not. Found a couple simple ones
hanging comma hack.ie_only,
{
background:blue;
}
source:
andcuriouser.comunderscore hack (applied to the attribute)
.ie_only
{
text-align:left;
_text-align:center; /* IE only */
}
source:
wellstyled.comThe inverse (to apply a rule selectively to non-IE browsers -- not sure if it's Mozilla-specific or CSS2-specific or just IE-specific or what):
html>body hackhtml>body .not_IE
{
text-align:left;
}
keywords: CSS, stylesheet, hack, conditional, IE, ie, browser-specific