View Full Version : Image in dropdown option

12-18-2005, 04:33 PM
I know this one is really hard, i searched the whole internet for this one...

How can I put an image in a dorpdown option. I know this isn't possible the normal way. And maybe I need to write an own dropdown, but maybe some can think of something.

Who has an idea, how it could be done, and what do you think is the easiest way?

12-18-2005, 05:22 PM
Mozilla FF not IE

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"



<select >
<option style="text-align:center;background-image:url(http://www.vicsjavascripts.org.uk/StdImages/One.gif);" >12345</option>


12-18-2005, 06:09 PM
Nice one, but i really need one that works in IE as wel...

12-18-2005, 06:26 PM
just need to wait a few years then

or use a fake select list (google)
I have one on my site
but it needs a bit more work.