I’ve done a bit of searching and come up with a few threads on changing the background color of an option in a select box but nothing on how one might be able to change the font style on a per option basis.
I am currently using the following set, which works fine for coloring but if I add font-weight:bold; into the select.highlight selector it does nothing (it still colors the options but does not make the text bold)
[code=php]
<style type=”text/css”>
select {
width:100px;
}
select.highlight {
background-color:red;
}
</style>
<select name=”choos”>
<option class=”highlight” value=”1″>One</option>
<option value=”2″>Two</option>
<option class=”highlight” value=”3″>Three</option>
<option value=”4″>Four</option>
</select>
Any ideas? Answers on a postcard ?