bo*@xta.com (Bob) wrote:
I've done this before, but can't find the simple code that allows
this.
I have a multiple item drop down created in a form with FrontPage
2002. I want to highlight or bold selected items, but not ALL the
items. The simple <b>BOLD</b> doesn't cut it. There is another
simple code that allows for this, highlighting, etc. Anyone know it?
In theory you would use some CSS, such as:
<option value="foo" style="font-weight: bold;">text</option>
or the equivalent using an external stylesheet and a class or id
selector.
However, it only works in Gecko.
Both IE and Gecko will support changing the color and background-color
of the text of individual options. Opera doesn't seem to support
styling individual options at all.
The only HTML method to emphasise a particular option is to change the
text itself. e.g.:
<option value="foo">TEXT</option>
or
<option value="foo">** text **</option>
or
<option value="foo">This option is important</option>
If this emphasis is critical for whatever reason then this very last
option is the only practical alternative when you take speech browsers
and the like into account.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>