"Tony" <so*****@somewhere.not> wrote in message
news:11*************@corp.supernews.com...
"Jim Moe" <jm***************@sohnen-moe.com> wrote in message
news:8f********************@giganews.com... Chamomile wrote:
this may be an old chestnut, but has anyone ever come accross
a straightforward way of styling a <select> element?
In particular the (always grey?) drop-down button color.
(This, and the 'Browse' button on an <input type='file'> seems
forever doomed to eternal greyness.)
Those are widgets inherent to the operating system; their shapes and
colors are defined in the OS and the user's preferences. The color is
gray because that is the color you have selected in the color theme.
Since you are using Windows, you can change these colors for yourself
by RMB-click on the desktop, select Properties, and then the Appearance
page. To answer your question: No, you cannot change the colors of those
parts using HTML.
Best I could think of is to use a faux-drop-down made in JavaScript, but,
of course, that would only work for those who have JavaScript...
Thanks, yes I've looked at the Javascript way - it's seems fiendishly
complex especially when
generating pages from php for a lot of select inputs for database editing.
The <select> input
is really easy to work with php - being easy to generate dynamically - I am
just fed up
with the nasty grey button ruining all my subtle color schemes! It could
become an obsession.
It seems curious to me that scroll bars and <select> background colors
etc.are accesible to css in minute detail,
but the <select> drop-down button isn't . Hey ho. Do you know of a nice
packaged javascript .js script
and function call that some kind soul has made available that will do the
'faux' job without giving me a brain seizure?