tags:

views:

6735

answers:

7

Is it possible to stylize the down arrow on a drop down select element? i.e., (-->)

I suspect the answer is no because of the way IE handles that particular element. If there isn't a way, does anyone know of a 'fake' drop down box using javaScript that would mimic that behavior but give me the ability to customize?

+3  A: 

Maybe you can use this, it's a jQuery plugin

Jan Hancic
+2  A: 

The drop-down is platform-level element, you can't apply CSS to it.

You can overlay an image on top of it using CSS, and call the click event in the element beneath.

Diodeus
+1  A: 

I don't know if it is stylable with CSS (probably not in IE), but please: do not use a "fake" drop-down box using javascript, because the usability of these things usually is horrible. Among other things, keyboard navigation is usually absent.

wvanbergen
A: 

No, the down arrow is a browser element. It's built in [and different] in every browser. You can, however, replace the select box with a custom drop down box using javascript.

Jan Hancic mentioned a jQuery plugin to do just that.

Ty
Don't see any reason for the down vote. So I voted it up.
Cyril Gupta
A: 

You would need to create your own dropdown using hidden divs and a hidden input element to record which option was "selected". My guess is that @Jan Hancic's link he posted is probably what you're looking for.

localshred
+2  A: 

You can't style combos very well using CSS.

The guys at FogBugz made a pretty good custom combo using JavaScript, so it is possible, it just takes a lot of work to get it right.

Better to stick with the standard one for version 1, then see if it's worth updating it once your app is in the wild.

Neil Barnwell
A: 

I have searched too much on it but could not found any solution in css, so I use jquery for this purpose. phpsol.net

Virtulian