<style type="text/css">
option.rowodd{background-color:yellow;}
        option.roweven{background-color:white;}
</style>


<select>
        <option class="rowodd">Row 1</option>
        <option class="roweven">Row 2</option>
        <option class="rowodd">Row 3</option>
        <option class="roweven">Row 4</option>
</select>

Sandy Clark
-----Original Message-----
From: Gordon Cantor [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 10, 2006 7:53 AM
To: CF-Community
Subject: Alternating background colors in a Select Dropdown box?

Does anyone know of a way to display alternating backgrounds for each row in
a select box????  
I do it for a table as shown below:
<cfset bgcolor = "C0C58B">
<cfif CurrentRow MOD 2> 
        <cfset bgcolor = "8bc0c5">

</cfif>
<tr bgcolor=#bgcolor#>

Gordon Cantor
WSA


-----Original Message-----
From: CF-Community [mailto:[EMAIL PROTECTED]
Sent: Friday, March 10, 2006 6:07 AM
To: CF-Community
Subject: ColdFusion Community (CF-Community): Digest every 6 hours

ColdFusion Community (CF-Community)          10-Mar-06
Issue:3390
In this issue:
      My next data room...
     Deanna how you doing ...
     FW: Soft Drinks may cause obesity
     FW: Soft Drinks may cause obesity
     interface idea (another one :)
     interface idea (another one :)
     My next data room...
     My next data room...
     My next data room...
     New Dog
     New Dog
     New Dog
     New Dog
     New Dog
     New Dog
     New Dog
     New Dog
     sleep apnea surgery scheduled





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:5:199495
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to