Site Navigation

Wednesday, April 16, 2008

bug 385 - valid CSS class names that fail in IE6

Issue: #385
Affects: IE6

In IE6, attempting to use a valid class name that starts with an underscore will fail.

Example:

<style type="text/css">
._myCSSClass {
/* This is a valid Class Name, but it will fail in IE6 */
border: 1px solid #ff0000;
margin: 1px;
padding: 3px;
}
</style>



Known Workarounds: None. The only option is to name all classes with an initial [a-zA-Z] character.

Example Workaround Code:

<style type="text/css">
.myCSSClass {
/* This is a valid Class Name, AND will work in IE6 */
border: 1px solid #00ff00;
margin: 1px;
padding: 3px;
}
</style>



Related Issues: None.

Bug/Site Feedback |
Submit a bug