Hi
I would like to make a dropdownbox with these elements:
1 - green
2 - blue
3 - red
4 - gray
etc..
I have made this code;
<option style="background-color: #00FF00" value=1>1 - green</option>
etc..
My problem is that I would only the word of the color ("green" or something) to have the background-color. I would that the number should have a white background-color.
I thougt about doing this using background-image. But I dont think this will work.
Any suggestions?
Jørn Arild Andenæs
jaa@jaa.no
I would like to make a dropdownbox with these elements:
1 - green
2 - blue
3 - red
4 - gray
etc..
I have made this code;
<option style="background-color: #00FF00" value=1>1 - green</option>
etc..
My problem is that I would only the word of the color ("green" or something) to have the background-color. I would that the number should have a white background-color.
I thougt about doing this using background-image. But I dont think this will work.
Any suggestions?
Jørn Arild Andenæs
jaa@jaa.no