Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > How can we make one particular option's text bold in html.

Reply
Thread Tools

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

 
 
ahmad
Guest
Posts: n/a
 
      03-08-2006
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.

 
Reply With Quote
 
 
 
 
VK
Guest
Posts: n/a
 
      03-08-2006

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>
....

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Re: Can I have b - for bold make in css in certain color? Jonathan N. Little HTML 7 10-13-2012 08:18 PM
Re: Can I have b - for bold make in css in certain color? Hot-Text HTML 1 10-05-2012 02:31 PM
Firefox - Rich Text Editing: Cannot do a text bold...? deostroll Javascript 1 01-11-2008 09:49 PM
How can I bold just one line in an object list? ckninar ASP .Net Mobile 0 09-08-2005 02:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57