4 replies [Last post]
Floyd
Offline
newbie
Leipzig {Germany}
Last seen: 16 years 8 weeks ago
Leipzig {Germany}
Joined: 2003-05-22
Posts: 1
Points: 0

Hi people,

at first, please forgive me my bad english because i come from germany an the last english lessen are two years ago.

i want to change the color of the frame from a select box...
a selectbox has normally the grey to frame and looks like an input field with an arrow. but i want to make this color not longer grey. simply whit or blue or black ....

can someone help me please?

Floyd

dbowne
Offline
Enthusiast
Washinton DC
Last seen: 16 years 8 weeks ago
Washinton DC
Joined: 2003-05-22
Posts: 53
Points: 0

solution not recommended

Floyd,

you can change the border color of a select box with size >= 2 (a multi-select box) but this only works in a few browsers.

<style type="text/css" rel="stylesheet">
select.testClass {
	border:1px solid blue;
}
</style>

<select class="testClass" name="testSelect" size="2" multiple>
	<option label="1" value="1">1</option>
	<option label="2" value="2">2</option>
	<option label="3" value="3">3</option>
	<option label="4" value="4">4</option>
	<option label="5" value="5">5</option>
</select>

This does not work in IE 5.5 (win/mac) however does work in Mozilla browsers. You can change the color and background color of the select element, but I do not recommend changing the border.

dbowne

sosos
Offline
newbie
Last seen: 16 years 3 weeks ago
Joined: 2003-06-23
Posts: 1
Points: 0

Change color of Select-box

but i want to run it in the IE, and can you help me? thanks.

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 3 weeks 3 days ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5342
Points: 2963

Change color of Select-box

Hi Sosos,
I don't know of any way to change the arrow on a select list in IE.
If you find a way let us know.

florent
florent's picture
Offline
Enthusiast
Paris, France
Last seen: 12 years 32 weeks ago
Paris, France
Timezone: GMT+1
Joined: 2003-04-19
Posts: 96
Points: 0

Change color of Select-box

it is impossible to change the color of the arrow in a select box. this color is set by the "desktop theme" of your windows desktop. everyone has a different color, unless they are using the default theme which is grey i believe.

sorry... Sad

I'm a perfectionist
and perfect is a skinned knee