Solved

changing display style of certain options in a select list

Posted on 2000-03-20
7
164 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

861 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now