Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 25th, 2005, 07:05 AM
Viv
Guest
 
Posts: n/a
Default Can the elements of drop down be showin in bold ?

I want to emphasize the elements of the html drop elements. Not all
element, but few of them. I tried with <b> and style "font-weight" but
its not working.

  #2  
Old July 25th, 2005, 07:35 AM
twaddle
Guest
 
Posts: n/a
Default Re: Can the elements of drop down be showin in bold ?

Viv wrote:[color=blue]
> I want to emphasize the elements of the html drop elements. Not
> all element, but few of them. I tried with <b> and style "font-
> weight" but its not working.[/color]

You cant do it with <b>. You can't put markup in an option. CSS is the
way to go but when it comes to forms it varies what styling browsers
allow. In this case IE won't play but for example Mozilla will.

  #3  
Old July 25th, 2005, 07:55 AM
Adrienne
Guest
 
Posts: n/a
Default Re: Can the elements of drop down be showin in bold ?

Gazing into my crystal ball I observed "Viv" <viv2005@gmail.com> writing
in news:1122270987.447712.228790@z14g2000cwz.googlegr oups.com:
[color=blue]
> I want to emphasize the elements of the html drop elements. Not all
> element, but few of them. I tried with <b> and style "font-weight" but
> its not working.
>[/color]

If you want to emphasize by grouping, look into the OPTGROUP element, eg:

<select name="groceries">
<optgroup label="Meats">
<option value="bf">Beef</option>
<option value="chx">Chicken</option>
</optgroup>
<optgroup label="Vegetables">
<option value="tom">Tomato</option>
<option value="spin">Spinach</option>
</optgroup>
</select>

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles