how can I style a drop down box with css? I would like to use a different color for the box if possible. I think the arrow cant be changed, right?
any pointers would be appreciated, thanks for reading
florian
Greven
5:04 pm on Jun 3, 2005 (gmt 0)
I beleive that this may have been brought up before, not sure though, but I think the only attributes that can be set on a <select> is the background-color and color of the text. You can also apply the same things to the <option>'s of the select. Someone please correct me if I'm wrong.
Barbacena
5:57 pm on Jun 3, 2005 (gmt 0)
Yes, Greven is right. Dropdownboxes are very limited in what you can change with CSS, in fact the styling of many form elements is deprecated as it could potentially me detrimental to the userability of the site. So as far as drop down lists go, you can only change basic things such as the font, background-colour, width etc. As for the arrow and borders, there isn’t much you can do. Strangely enough, you can change the scrollbar and arrows of a “textarea” element, but not for drop down menus.