HTML & CSS
this is what I need to do...
I have never styled select dropdowns without the arrow....
I searched, found some stuff on SO,
but this is working only on Chrome, not on FF (and IE I have no idea..... ;-o )
this is what it looks like in Chrome:
thank you very much....
PS: this is from current site,
(can't post url b/c it's behind a login firewall...)
it looks like there's a div "on top" of actual select... select has opacity:0 but at the same it's being styled also...
The simple fact of the matter is that you cannot style select elements cross browsers to look the same with css alone. It's just not possible (yet) to change the appearance much or add custom images. You would need a JS/Jquery solution to do that where the select element is swapped out of the html and replaced with a css dropdown and values swapped between the two with js.
Here are some common scripts.
There is a css trick you can use and make the dropdown wider than you need and then cut off the overflow so you can't see the default arrow. You can then overlay a custom arrow image over the select. The seelect wil still work as it works on any part of the visible section and not just the arrow.
The drawbacks is that you can't control the option width which will be wider and in IE the current item stays highlighted blue and spoils the effect a little.
Here's a link to an article that explains that method.
thank you very much... oh man.. I get this last-min job that I needed badly.. and come across this highly stylized dropdown request... something I confess I have never done before....;-o
thank you for all the links you posted.. I also found this jQuery select dropdown plugin that looks very cool...
maybe I'll give this a try...
since jQuery is really good with cross-browser, I hope it'll work in IE as well as in the sane browsers...;-)
thank you very much, Paul.. I appreciate all your help.....
This topic is now closed. New replies are no longer allowed.