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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

background for SELECT tag 2

Status
Not open for further replies.

spicysudhi

Programmer
Nov 10, 2003
575
FR
Hi,

I want to place a background image for a select list box. How to do that...

<select name="lstGroup" size="6" style="width=280px">
....
</select>


When I add
Code:
background-image:  url('images/background.jpg')
in the style, its not showing the image as background.

thanks in advance.

regards,
Sudhi
 
I agree will BillyRay. For starters IE doesn't support it, eventhough Firefox does.

do you really need a background in the select box? Would a solid color be o.k. instead of an image?

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
thanks.

yes, I wanted image. Anyway... as it cannot be done, i'll go for background color instead of image.

regards,
Sudhi
 
interesting link Chris, amazing the difference each browser renders these elements.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Star for you. Chris, Great link.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top