Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

appearance of drop down list boxes

Status
Not open for further replies.

brisray

Programmer
Feb 7, 2002
88
US
Not much luck with my last question about grouping elements - (thanks for the code though Travis). Oh well, I'll have to do it a longer way than I wanted to. Here's another poser ...

I want to be able to change the font in each option section of a drop down dialog box. I can change the colour, font and size of the entire thing. I can change the colour of each option if i wanted to.

I can't see how to change the font. I don't even know if it is possible. Nothing I've read says it isn't, but neither have I seen any examples either - not anything that is even close and nothing I've tried seems to do the trick either.

You can see what I'm trying to do at
As usual, any and all replies and suggestions are welcome.

Ray
 
Ray,

Your code is syntactically correct - it just happens that your browser doesn't support changing the font per OPTION.

Here's a quick summary of the "big 3":

IE 6: Can change bg color, cannot change font style
NN 7: Can change bg color AND font style
Opera 7: Cannot change bg color or font style

So you can see in NN 7, for example, your code works perfectly, changing the font on an option-by-option basis.

I hope this gives you some hope that your code isn't broken - just your browser ;o)

NN 7 is pretty good, IMHO, although I do still use IE 6 the majority of the time... But having all 3 browsers installed for this sort of testing really is a big help sometimes.

Hope this helps!

Dan
 
Thanks for reminding me Dan. I usually test the code in Mozilla, Opera, Netscape and IE before I ask questions like this but on this occasion didn't. Otherwise I would have seen for myself what was going to happen.

Once again it goes to show that not all browsers were created equal. Perhaps I'll have to start putting notices on my pages "This bit looks good in Netscape, but you'll have to have to view the next paragraph in IE."

Ray
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top