Solved

changing display style of certain options in a select list

Posted on 2000-03-20
7
174 Views
Last Modified: 2010-04-09
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.
0
Comment
Question by:paulboswwod
7 Comments
 
LVL 5

Expert Comment

by:tzarad
ID: 2636162
You can only give a style to the select tag not on the option one. ;-(
0
 

Accepted Solution

by:
JavaBloggs earned 30 total points
ID: 2636332
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
 
LVL 3

Expert Comment

by:davlun20080
ID: 2638897
Link above not working for me...
davlun
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 

Author Comment

by:paulboswwod
ID: 2639368
Thanks very much , changing the colors will certainly make the required options stand out.

Paul.
0
 

Expert Comment

by:JavaBloggs
ID: 2639461
 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
 
LVL 3

Expert Comment

by:davlun20080
ID: 2641363
Looks great!  any way in NS?
0
 

Expert Comment

by:JavaBloggs
ID: 2643982
Nope, its IE 4+

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question