• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 22205
  • Last Modified:

Applying background-image to <SELECT> element

Hi experts

Looking for a quick answer...

Anyone know how to make this work?

my code:

<select name="cboTest" id="cboTest">  
<option value="1" style="background-image: url(./_img/plus.gif);" selected>    one  </option>
<option value="2" style="background-image: url(./_img/minus.gif);">    two  </option>  

Alan ";0)

ps... Code works fine in firefox, but not in IE 7
Alan Warren
Alan Warren
1 Solution
Have you tried messing with:

background-repeat: no-repeat;
background-position: 1px 2px;


The shorthand css is:

background: url(.jpg) no-repeat 1px 2px;
from: http://www.dynamicdrive.com/forums/archive/index.php/t-1646.html
> I really don't think going to such lengths is worth the effort at all. It's a form control, for goodness sake.
I most definitely agree!

You can use radio buttons instead... but i guess you know that already.
Alan WarrenApplications DeveloperAuthor Commented:
Sorry for the delay.

Finding out that there is no work around for IE, was the information I was looking for.


Alan ";0)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now