exactly... :)

Weidler, Wilfred C. wrote:
>  
> Ok, I get what you are trying to do now.  You want a colored box beside
> the hex value in the option tag.
>
> Correct?
>
> Chuck
> -----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;">&nbsp;</div>#6666CC</option> 
>      <option value="#66CC66" ><div style="display: block;
> background-color:#66CC66; border:medium; border-color:#000000;
> width:10px; height:10px;">&nbsp;</div>#66CC66</option> 
>      <option value="#CC6699" ><div style="display: block;
> background-color:#CC6699; border:medium; border-color:#000000;
> width:10px; height:10px;">&nbsp;</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;">&nbsp;</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 &amp; 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:312609
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to