Discussion:
a way to change font of displayed options in drop-down list?
(too old to reply)
Loane Sharp
2004-09-24 18:54:55 UTC
Permalink
Hi there

Is there any way to change the font (family, size, etc.) from the default
(apparently Arial 12pt) when listing items in a drop-down list using the
<OPTION></OPTION> tags?

Best regards
Loane
Justin Wood (Callek)
2004-09-26 05:10:16 UTC
Permalink
Post by Loane Sharp
Hi there
Is there any way to change the font (family, size, etc.) from the default
(apparently Arial 12pt) when listing items in a drop-down list using the
<OPTION></OPTION> tags?
Best regards
Loane
with CSS (all from memory only)

~Justin Wood (Callek on moznet IRC)

<style>
<!--
/*Style for OPTION font*/
option {
font-size: 87%;
font-family: "Arial", "Times New Roman", serif;
/*May be bad font choices*/
color: blue;
background-color: white;
}
optgroup {
font-size: 110%;
font-weight: bold;
color: red;
background-color: aqua;
}
//-->
</style>

Loading...