PDA

View Full Version : font style in select list?


homerUK
05-09-2003, 09:27 AM
hey,

is it possible to change the font face in a drop down menu list? I know a style can be applied to the <select> tag, but what about the <option> tags.... here's what I have:


<select name="select">
<option style="font-size:10; font-family:arial; value="arial">arial</option>
</SELECT>


there will be more of a list all with different fonts, so the next one will be say, times new roman... but the font doesnt change.

is this possible?? thanks!

WA
05-09-2003, 09:51 AM
This is a HTML/CSS question, so moving thread...

Cris79
05-09-2003, 01:22 PM
The font-family and font-size I don't think it can be changed, style is suported only by <select>.
But you can change the color of the text

<style type="text/css">
option.change1{color:red}
option.change2{color:blue}
</style>

Catman
05-09-2003, 03:10 PM
<select>
<option style="font-family : Arial">Arial</option>
<option style="font-family : Courier">Courier</option>
<option style="font-family : Tahoma">Tahoma</option>
<option style="font-family : 'Times New Roman'">Times New Roman</option>
<option style="font-family : Verdana">Verdana</option>
</select>This works for PC versions of Mozilla and Netscape but not Opera and IE.