I have seen somewhere, different items in a dropdown (<select></select>) are bold and some are not - can I find this again?
Anybody knows how??
Printable View
I have seen somewhere, different items in a dropdown (<select></select>) are bold and some are not - can I find this again?
Anybody knows how??
Use a inline style tag on the Option tags that you want bold:
Code:<select>
<option style="font-weight: bold" value=1>One</option>
<option value=2>Two</option>
<option value=3>Three</option>
<option style="font-weight: bold" value=4>Four</option>
<option value=5>Five</option>
<option style="font-weight: bold" value=6>Six</option>
</select>
Cheers monte96 for the reply - but it doesn't seem to work (i'm Using IE 6), but anyway thanks but I eventually found the page - I was trying to do :-
<select name="SiteNo" style="width:245">
<optgroup label="Main Heading 1">
<option value="1">One
<option value="161">Two
<option value="2">Three
</optgroup>
<optgroup label="Main Heading 2">
<option value="171">Four
</optgroup>
</select>
IE 6 supports OPTGROUP? Holy Freakin' Cow!!!