changing display style of certain options in a select list

I wish to alter the rendering eg.bold/italic of certain options in a select list.I have tried setting the class name of the relevant options which has no effect. Can you suggest any solution.I'm using an IE5 browser.

Thanks
Paul.
paulboswwodAsked:
Who is Participating?
 
JavaBloggsCommented:
Okay...
  You are a little limited in what you can do. You can set, font face, size, colour and background colour, but thats it...

  If you set up a coupple of classes in the document, you can specify a different class between the different options, and example of this can be seen on the following page:

  http://www.rldevelopment.co.uk/test/idle/dropdown.html

  Note the bottom options, if you look at the page source you will see that although a colour shas been specified for them and this is working, the other attributes, like bold text and size are not... these can only be specified once and are common to the whole list...

  Hope this helps
  Regards
  Me

0
 
tzaradCommented:
You can only give a style to the select tag not on the option one. ;-(
0
 
davlun20080Commented:
Link above not working for me...
davlun
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
paulboswwodAuthor Commented:
Thanks very much , changing the colors will certainly make the required options stand out.

Paul.
0
 
JavaBloggsCommented:
 No worries...

  davlun20080, if you want to look at it it is working again now... sorry think the server fell over for a while  :o)
0
 
davlun20080Commented:
Looks great!  any way in NS?
0
 
JavaBloggsCommented:
Nope, its IE 4+

ALTHOUGH: (not much of a consolation) Netscape will accept the font-size: x-small; Think thats about it...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.