How can we make one particular option's text bold in html.

  • Follow


I want to make a particular option's text bold within a list in html,
while all other options will get their normal font-weight, How can i do
this????????

i tried <b>, <font> tags and style and class attributes to do this. but
these didnt work. only text color or background color of a particular
option can be changed.

0
Reply ahmadwaqas1982 (2) 3/8/2006 9:30:05 AM

ahmad wrote:
> I want to make a particular option's text bold within a list in html,
> while all other options will get their normal font-weight, How can i do
> this????????

You can't. <select> style is atomic (applied to all options). You can
place the option into separate <optgroup> to make it stand out
visually:
....
<optgroup label="Special">
 <option>...
</optgroup>
<optgroup label="Others">
 <option>...
 <option>...
 <option>...
</optgroup>
....

0
Reply VK 3/8/2006 10:10:00 AM


1 Replies
362 Views

(page loaded in 0.084 seconds)

Similiar Articles:













7/23/2012 5:54:34 PM


Reply: