473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 15077
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andrea | last post by:
Hi, I'm trying to emulate part of our client-server application as a web site so customers can use it, and I'm stuck when it comes to re-ordering items in a list. Basically we have a list of...
1
by: Ang Talunin | last post by:
Hey, I wondering if it's possible to retrieve all the <option>-fields from a <select> when posting a <form> to a php file Example: I've got a form like this: <form action = phpfile.php...
6
by: Bonge Boo! | last post by:
This has got to be obvious, but I can't make it work. I have a form called with 3 pull down menus. They are linked to a database which generates the values for the <SELECT? Pull-downs. Lets...
4
by: joiv | last post by:
I'm making a <select></select> with lots of <option></option>. It contains all possible options. Because of the length of the list, I also have an <input type="text">. This is what I wish to do:...
5
by: Brian Foley | last post by:
Hello, I am used to using the label tag with check boxes and radio buttons in html forms. This allows me to click on the text of the label to activate/deactivate the check box / button, rather...
6
by: Chris Fink | last post by:
Does anyone know it is possible to include a small image(.gif .jpeg) within a <SELECT><option> so that the user would see the option text as well as a little image(icon) in the option? I know this...
6
by: joseph.lindley | last post by:
Forgive me for I am a bit of a web-dev novice - but I'm not doing too bad. I'm currently working with a bit of javascript to dynamically add <option>s into a select box. My code currently works...
4
by: luftikus143 | last post by:
Hi there, I have a nasty little problem, as so often, only with IE. Here is an screenshot to better illustrate the problem. http://geodata.grid.unep.ch/screenshot13.png The map is clickable (to...
4
by: Man-wai Chang | last post by:
-- iTech Consulting Co., Ltd. Expert of ePOS solutions Website: http://www.itech.com.hk (IE only) Tel: (852)2325 3883 Fax: (852)2325 8288
14
mikek12004
by: mikek12004 | last post by:
In a form I have 5 elements (e.g. pictures) and I wish for the user to be able to set the order of appearance. For this I have for each picture a select box (names select1 to select5) with "please...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.