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

font-family not working for Option tag in IE 3

Status
Not open for further replies.

Xaqte

IS-IT--Management
Oct 4, 2002
971
US
I have the followoing code as a basic example:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/loose.dtd">[/URL]
<html lang="en-US"><head><title>Select Test</title>
</head>
<body>
     <select name="fonts">
	<option style="font-family:Georgia;" value="Georgia">Georgia
	<option style="font-family:Arial;" value="Arial">Arial
	<option style="font-family:Impact;" value="Impact">Impact
	<option style="font-family:Verdana;" value="Verdana">Verdana
	<option style="font-family:Times New Roman;" value="Times New Roman">Times New Roman
	<option style="font-family:Trebuchet;" value="Trebuchet">Trebuchet
	<option style="font-family:Courier;" value="Courier">Courier
	<option style="font-family:Helvetica;" value="Helvetica">Helvetica
	<option style="font-family:Lucida Sans Unicode;" value="Lucida Sans Unicode">Lucida Sans Unicode
	<option style="font-family:Lucida;" value="Lucida">Lucida
	<option style="font-family:Sans-serif;" value="Sans-serif">Sans-serif 
     </select>
</body>
</html>

This should give each option its own font type, and it does for Firefox... but not for IE. Is there any way to make this work in IE?

Thanks in advance for any help/experience!

X
 
So, I guess this just won't work at all in IE... right Glen?
I was wanting a select box with the options being multiple fonts, and that option to be displayed as the font itself.
I was hoping for some workaround, but thanks anyhow Glen!

X
 
Thanks to everyone who responded!

FesterSXS:
Do you have an example of what you are referring to?

BillyRay:
Thanks for the confirmation for another of IE's annoyances!

Vragabond:
Good link! However, this refers to styling the "select" tag and not the "option" tag... this is where my problem is.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top