The Underscore Hack

The Underscore Hack is a useful looking CSS hack. IE/Win ignores an underscore (_) at the beginning of any CSS property name, interpreting the declaration as if the underscore wasn't there. Other browsers do not recognise the property and ignore the declaration. Note that underscores used to be illegal in CSS identifiers and properties, but that was changed in CSS 2.1. (via Mike Davidson)

Posted on November 6, 2004 in Quicklinks, CSS