Previous Message
Next Message

[css-d] Table based colour picker to divs

Sent by Julian Voelcker on 15 January 2003 13:01


Hi,

I have a colour picker displaying the 216 web 'safe' colours in a table 
and am looking to see if there is some easy way of displaying them 
using Divs.

Any ideas?

So far I have each colour expressed as follows:-

<div id="0000cc" style="background:#0000CC;" class="box">0000CC</div>

and the following style:-

box {
   text-align: center;
   border: thin solid #000000;
   position: relative;
   width: 60px;
}

I was hoping to find some way that they would 'build up' side by side 
and then wrapping onto the line below.

Any ideas?

Cheers,

Julian Voelcker
Cirencester, United Kingdom
Previous Message
Next Message