.myTestClass{
width: 5px; /* value used by all other browsers */
#width: 7px; /* value used by IE */
_width: 9px; /* value used by IE6 and older */
}
I don't think it's a part of the CSS official specification but it works ;)
.myTestClass{
width: 5px; /* value used by all other browsers */
#width: 7px; /* value used by IE */
_width: 9px; /* value used by IE6 and older */
}
3 comments:
I've read that for IE7 an asterisk (*) should be used. You suggest a hash (#). Did you try both characters? Could you say if they both can be used for the same reason?
I'm referring to this article
I always use * for IE7 (and down), so if you want something different for IE6, you then have to follow that with a line preceded by a "_".
If your code validates as strict doctype you won't need these browser specific "hacks".
Google "DOCTYPE strict" and "HTML validator."
Post a Comment