Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
CSS "em" attribute in netscape 4.75 chimchim msg:1188461 8:45 pm on Apr 15, 2002 (gmt 0) does NS 4.7+ support font sizes expressed as "ems" in a CSS? if so, is it conditional upon location in the html code? is seems that i am having difficulty getting it to format correctly on the screen and not sure what is going on---though i thought that NS4.7+ supported it.
tedster msg:1188462 9:32 pm on Apr 15, 2002 (gmt 0)
I have no problems with 4.77 and ems
How about posting your css snippet. Maybe we can spot something.
DrDoc msg:1188463 1:11 am on Apr 16, 2002 (gmt 0)
As always, Netscape is a bit sensitive .. But the good thing is that there are ALWAYS workarounds :) tedster msg:1188464 3:27 am on Apr 16, 2002 (gmt 0)
I take it back - Netscape 4.77 has fewer bugs than earlier versions, but it's still not right on ems in all cases.
I suggest creating a stylesheet just for NN4, using pixel sizing. Then create another "generic" stylesheet for all the later browsers using ems.
Bring in the two stylesheets in the <head> like this:
<link rel=stylesheet href="http://example.com/nn4.css">
@import url(http://example.com/generic.css); </STYLE> Browser specific CSS [ webmasterworld.com]
Because NN4 doesn't support @import, it will get pixel sizes. Everything else will get the em sizing that comes in later in the cascade.
chimchim msg:1188465 3:28 am on Apr 16, 2002 (gmt 0)
i have used the "@import url" advice i received earlier this week and it works very well!
just thought maybe i was missing something...thanks for all of the help.