Hi Sandra,
First off, let me say that I absolutely accept you as the
authority on CSS, at least on this list. But... This seems to work (in
the drop-downs if no size specified), even on chrome:
<form>
<select name="s">
<option style="background-color:green">Green</option>
<option style="background-color:red">Red</option>
</select>
</form>
-----Original Message-----
From: Sandra Clark [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2008 12:40 PM
To: CF-Talk
Subject: RE: CSS Question
You can't color individual option tags. You can however color
<optgroup>
tags
Sandra Clark
=============
http://www.shayna.com
Training and Consulting in CSS and Accessibility
Team Fusebox
-----Original Message-----
From: Scott Stewart [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2008 12:30 PM
To: CF-Talk
Subject: Re: CSS Question
this colors the entire option tag
here's the rendered html with a div in place, still no love
<select name="hex_id" id="hex_id">
<option value="#6666CC" selected><div style="display: block;
background-color:#6666CC; border:medium; border-color:#000000;
width:10px; height:10px;"> </div>#6666CC</option>
<option value="#66CC66" ><div style="display: block;
background-color:#66CC66; border:medium; border-color:#000000;
width:10px; height:10px;"> </div>#66CC66</option>
<option value="#CC6699" ><div style="display: block;
background-color:#CC6699; border:medium; border-color:#000000;
width:10px; height:10px;"> </div>#CC6699</option>
</select>
Weidler, Wilfred C. wrote:
> Put the style attribute in the <option> tag and get rid of the <span>.
>
> Chuck
>
> -----Original Message-----
> From: Scott Stewart [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 16, 2008 12:07 PM
> To: CF-Talk
> Subject: CSS Question
>
> <cfoutput query="getHexID">
> <option value="#hex_id#" <cfif hex_id eq
> get_category.hex_id>selected<cfelse></cfif>>
> <span style="background-color:#hex_id#; border:medium; width:10px;
> height:10px;"> </span>#hex_id#
> </option>
> </cfoutput>
>
> any reason why the span tag shouldn't produce a small box colored with
> the dynamic hex value
>
> --
> Scott Stewart
> ColdFusion Developer
>
> Office of Research Information Systems
> Research & Economic Development
> University of North Carolina at Chapel Hill
>
> Phone:(919)843-2408
> Fax: (919)962-3600
> Email: [EMAIL PROTECTED]
>
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312617
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4