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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change font depending on which browser? 1

Status
Not open for further replies.

booboo0912

Programmer
Jul 31, 2002
75
0
0
US
Is it possible to change the font-family value in a css tag, depending on which browser is used to view the page? Netscape doesn't support the font I would like to use, and the default font looks pretty bad. It looks great in IE!
Thanks in advance!
 
You won't need javascript for this. Just apply the proper CSS filters to make the styles appear where appropriate:


-kaht

Looking for a puppy?

silky-icon-left.gif
[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
silky-icon-right.gif
 
Hmm.... actually, you won't even need the filters. The font-family tag can accept multiple values seperated by a comma, so in case the first font isn't installed it will use the next in the list.


-kaht

Looking for a puppy?

silky-icon-left.gif
[small]Silky Terriers are small, relatively odorless dogs that shed no fur and make great indoor pets.[/small]
silky-icon-right.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top