469,352 Members | 1,766 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

css and <select>

I've only just come accross this newsgroup, so apologies if I seem to be
cross-posting...

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.)

I'd really like a css way of altering the grey - I've come accross
some exotic javascripts for making pseudo <select>s, but using that with php
html generation and a lot of <select>s populated
by a database for editing gets to be a tad over-complicated and rather top
heavy
Jul 21 '05 #1
3 14944
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.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 21 '05 #2
"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...
Jul 21 '05 #3

"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?
Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Ang Talunin | last post: by
5 posts views Thread by Brian Foley | last post: by
6 posts views Thread by Chris Fink | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.