[thelist] IE 5.5 & CSS

Teresa_Molina at hartehanks.com Teresa_Molina at hartehanks.com
Tue Jul 18 14:11:25 CDT 2000


Stranger still, sometimes CSS in Netscape 4.x won't work if there's a space
between the colon of the property and its value. That is
"font-size: 13 pt;" doesn't work, but "font-size:13pt;" does. Wacky.


"kev.skindrill wrote:
> Now this used to work fine, but now it all works except the 1st line
>
> #heading1{font size: 24pt; font-family: arial; font-variant:
> small-caps}

Kev,

     Strangely, I got your sample CSS to work in IE 5.5. In point of
fact, however, the "font size" declaration should not work; "font size"
should be "font-size". This is apparently another case of IE's lax
enforcement of CSS rules. However, you'd be well-advised to include the dash
on all hyphenated property names -- most UAs won't be so forgiving, and with
some (namely Netscape 4), none of your properties will show up at all.

James Aylard
jaylard at equilon.com"






More information about the thelist mailing list