3

I want to set Select box of transparent background

I used CSS of select {background: transparent}

But it not working. how do I do?

Jasper
  • 2,314
  • 3
  • 26
  • 33

2 Answers2

4

Try adding

-webkit-appearance: none;
ANDiTKO
  • 432
  • 4
  • 8
0

try this:

select {
  opacity: 0.7;
  filter: alpha(opacity=70);
}

That is if you want to create a transparent select tag

Ibu
  • 42,752
  • 13
  • 76
  • 103
  • I don't think use the opacity can set a transparent background select, Because it will select box and text and borders are transparent – Jasper Jun 07 '11 at 05:13
  • Oh now i understand your question better. simply use a transparent image in your background – Ibu Jun 07 '11 at 05:20
  • I tried this CSS background: url(images/transparent.gif), It not working why? – Jasper Jun 07 '11 at 10:06
  • a transparent background always work. most overlays use transparent backgrounds in css2. are you testing in IE7 or less? not that is matters really but i have always preferred pngs when it comes to transparency – Ibu Jun 07 '11 at 15:43