Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape fonts for CSS

Status
Not open for further replies.

danima

Programmer
Jan 9, 2002
134
CA
Hi folks:

When I use [font-style="verdana, helvetica, arial"] everything looks great in IE but not in Netscape. Any suggestions on what font I should be using to make the text readable in Netscape?

Thanks in advance.
 
try this: [font-style:verdana, helvetica, arial] (change the '=' to ':') There's always a better way...
 
That's what I meant...I guess I type to quickly.

font-style: "verdana, helvetica, arial";

 
Okay, then give this a try:

{font-style:verdana, helvetica, arial} (change the '[ ]' to '{ }')

If you're yousing an external style sheet, don't forget to call it from your page :

<LINK rel=&quot;stylesheet&quot; href=&quot;mystylesheet.css&quot; type=&quot;text/css&quot;> There's always a better way...
 
You're going to think I'm crazy....you can tell I don't post often....this is what I have in my style.css file:

.paragraph { font-style: &quot;verdana, helvetica, arial&quot;;
font-size: 9pt;
color: #000000;
font-weight: bold
}

Sorry for the confusion....I just put it in brackets to differentiate it from the rest of my post.

Cheers and thanks!
 
You didn't tell exactly what's wrong.
&quot;everything looks great in IE but not in Netscape&quot; - this is not an explanation.
One known problem is that font sizes are not the same (they appear smaller in N4) on *some* values.
The solution can be or changing font size to the value that will look the same, or attach alternate stylesheet for N4.

One suggestion to make your CSS more compact:
.paragraph
{ font: bold 9pt verdana, helvetica, arial;
color: #000000;
}

This works excellent in all browsers. Just note to keep the same order of properties as I did.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top