Welcome to WebmasterWorld Guest from 54.227.72.69

Forum Moderators: not2easy

Message Too Old, No Replies

CSS "em" attribute

in netscape 4.75

     

chimchim

8:45 pm on Apr 15, 2002 (gmt 0)

Inactive Member
Account Expired

 
 


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.
9:32 pm on Apr 15, 2002 (gmt 0)

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 0


I have no problems with 4.77 and ems

How about posting your css snippet. Maybe we can spot something.

1:11 am on Apr 16, 2002 (gmt 0)

Senior Member

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

joined:Mar 15, 2002
posts:6807
votes: 0


As always, Netscape is a bit sensitive ..
But the good thing is that there are ALWAYS workarounds :)
3:27 am on Apr 16, 2002 (gmt 0)

Senior Member

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

joined:May 26, 2000
posts:37301
votes: 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

3:28 am on Apr 16, 2002 (gmt 0)

Inactive Member
Account Expired

 
 


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.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members