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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

suppress italic in optgroup label

Status
Not open for further replies.

lovekang

Programmer
Feb 16, 2006
86
KR
If the label fo optgroup tags is normal it will look better.

How can I suppress italic font ?

style="font-style:normal" doesn't do any job.

 
Styling form elements is a very much hit-and-miss afair... the results are dependent on both browser and OS. If it's not working for you, assume it's not going to work for many people, and give up while you're ahead.

Most people know the look-and-feel of form elements in their own browser under their OS... so it's probably best to leave these unstyled anyway, IMHO.

456bereastreet.com have some good examples of how styled form elements look on different platforms - wander over and take a look.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
I do believe it works in FF, but IE is less inclined to modify the styling within the select element. But there are so many browsers out there, each with its own quirk (not to mention that according to this most of the optgroup rendering in today's browsers is wrong), I think you're best off leaving it like it is. You can apply your styling and have it be seen by those whose browsers support it and ignored by others.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top