Because a span is an inline element and cannot have a width applied to it. If you want a block you're either going to have to put more non-breaking spaces inside your span, use a div, or set display: block on your span.
-----Original Message----- From: Scott Stewart [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2008 11:07 AM 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:312600 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4