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!

Style Select List Fonts

Status
Not open for further replies.

TamedTech

IS-IT--Management
May 3, 2005
998
0
0
GB
Hello Guys,

I have a SELECT drop down box containing the names of different fonts and I'm hoping to be able to have the name of the font displayed in that font face.

Can I style the font face of the items in the select list? if so then how?

Thanks guys,

Rob

 
Hi

Like this ?
Code:
<select>
<option style="font-family: Arial">Arial</option>
<option style="font-family: Courier New">Courier New</option>
<option style="font-family: Times New Roman">Times New Roman</option>
</select>
That works in Mozillas, but not in others. As far as I know, no you can not do it as you wish. Maybe with some DHTML maneuver, but the result will not be a [tt]form[/tt] element.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top