Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Emphasis on OPTION text


Message #1 by "Don Woo" <dwoo@r...> on Wed, 17 Jan 2001 15:30:45 -0000
Actually it works in IE 5.5, if you specify the class attribute for the
OPTION element rather than the SELECT one. It also works in NN6 in this way.

Chris

-----Original Message-----
From: Imar Spaanjaars [mailto:Imar@S...]
Sent: Wednesday, January 17, 2001 11:00 PM
To: HTML Code Clinic
Subject: [html_code_clinic] Re: Emphasis on OPTION text


Does Netscape 6 render this correctly?? I was under the impression that 
most of the styles apply to the list / select element and not to any of the 
separate option fields. In IE it seems like either all, or none at all.
But I haven't been able to figure out if this is IE behavior only or not, 
since I don't have Netscape 6 close here.

Imar



At 05:15 PM 1/17/2001 +0000, you wrote:
>Easy enough to cure, just put the CLASS attribute on the <OPTION> tag
rather
>than a SELECT tag as a whole.
>
>e.g.
>
><SELECT NAME="lstMyList" SIZE="1" >
><OPTION CLASS="MySelectClass">hello</OPTION>
><OPTION >goodbye</OPTION>
></SELECT>
>
>I won't bore you with the details of how well each browser renders it, but
>sufficeth to say, NN6 does the more accurate depiction.
>
>Chris


---
FREE WEB DEVELOPMENT CODE, CONTENT, AND INSIGHTS
IN YOUR INBOX!
Get the latest and best HTML, XML, and JavaScript tips, tools, and 
developments from the experts.  Sign up for one or more of EarthWeb?s
FREE IT newsletters at http://www.earthweb.com today!  
$subst('Email.Unsub')

  Return to Index