Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

images in drop-down listboxes

Status
Not open for further replies.

CayceB

Technical User
Jan 29, 2003
10
I've seen this done before but cannot find any examples from which to 'lift' some code. What I want is a dropdown list with a small image to the left of the text in each option, different image for each option.

Can this be done with HTML/CSS or is it some custom object I've seen used? I've tried styling my <OPTION> tags with background images, enclosing the option text with <SPANS> and such, to no avail.

thanks.
 
It can be done with HTML/CSS, but it will have to be customly built. The <select> tag doesn't support background images, so you can create the illusion of a dropdown with good ol divs.

[monkey][snake] <.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top