homepage Welcome to WebmasterWorld Guest from 54.167.179.48
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
CSS "em" attribute
in netscape 4.75
chimchim

10+ Year Member



 
Msg#: 150 posted 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

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 150 posted 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

WebmasterWorld Senior Member drdoc us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 150 posted 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

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 150 posted 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">

<STYLE TYPE="text/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

10+ Year Member



 
Msg#: 150 posted 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved