This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > May 2005 > css and <select>





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author css and <select>
Chamomile

2005-05-17, 7:32 pm

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


Jim Moe

2005-05-17, 7:32 pm

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

2005-05-17, 7:32 pm

"Jim Moe" <jmm-list.AXSPAMGN@sohnen-moe.com> wrote in message
news:8fqdnZwOBMvWoRffRVn-qg@giganews.com...
> Chamomile wrote:
> 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...


Chamomile

2005-05-18, 7:46 pm


"Tony" <someone@somewhere.not> wrote in message
news:118krlt4o11vs6e@corp.supernews.com...
> "Jim Moe" <jmm-list.AXSPAMGN@sohnen-moe.com> wrote in message
> news:8fqdnZwOBMvWoRffRVn-qg@giganews.com...
gray[color=darkred]
by[color=darkred]
page.[color=darkred]
parts[color=darkred]
>
> 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?


Jim Moe

2005-05-20, 7:38 pm

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

2005-05-20, 7:38 pm

"Jim Moe" <jmm-list.AXSPAMGN@sohnen-moe.com> wrote in message
news:8fqdnZwOBMvWoRffRVn-qg@giganews.com...
> Chamomile wrote:
> 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...


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews