[thelist] <select> Items
James Aylard
evolt at pixelwright.com
Thu Aug 1 11:22:00 CDT 2002
KOY,
> How can I make one of the items in a Select box bold while the other items
> remain normal ?
Use style sheets, e.g.:
Within the <head> of your document:
<style type="text/css">
.SpecialOption {
font-weight: bold ;
}
</style>
And within the <body>:
<select>
<option>1</option>
<option class="SpecialOption">2</option>
<option>3</option>
</select>
Browser support for this will vary. Particularly, IE/Win 32 will only
allow you to apply a unique color or background-color to an option, so you
may want to apply one of those styles, as well, in order to distinguish the
option in a much wider group of browsers.
James Aylard
More information about the thelist
mailing list