How to Target ie6 only, using CSS
Here is a useful tip to target ie6 only, in your CSS stylesheet…
To target ie6 only, in your CSS stylesheet, add an underscore before the relevant property. For example:
#target_element{
padding: 6px; /* will be interpreted by all browsers */
_padding: 3px; /* will be interpreted by ie6 only */
}
Of course, it is inadvisable to unsparingly use such tricks as this will interfere with validation, but this tip has its development uses.
Here at TEMPLATIS we like valid code, indeed all of our web templates are fully valid; and so, on the occasions on which ie6 is misbehaving, we favor an additional stylesheet, placed in the header section of the html file, for example:
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie6.css" />
<![endif]-->
Try it out!