Link to home
Start Free TrialLog in
Avatar of Evyatar
EvyatarFlag for Israel

asked on

select box

How can I remove (or apply color) the border from select box .
(for example:
<select name="st" style="?">
<option>111111111111111</option>
<option>222222222222222</option>
<option>3</option>
</select>)
I had tried many types of style like:
style="border:solid orange" - doesn't work!

Thanks.
Avatar of a.marsh
a.marsh

There is limited browser support for styles on form elements - particularly on select elements.

What web browser are you using?

Ant
This, for example, will work in IE 5

<html>
<head>
</head>
<body>
<form>
<select style="background-color: #990000; color: #ffffff;">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
<option value="5">Five</option>
</select>
</form>
</body>
</html>

Ant
Avatar of Evyatar

ASKER

Hi,
I'm using ie5.
anyway, your solution is regard to the background color
and my problem is the BORDER of the selectBox
I just wish to remove it.
thanks anyway.
ASKER CERTIFIED SOLUTION
Avatar of DreamMaster
DreamMaster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Max is correct about the border there is no standard browser that supports border changes for select; that is also true of the scroll bars on the select. Ant is also correct on the limited styling available in IE5+.

Cd&
Avatar of Evyatar

ASKER

O.K
if there is consensuses about the impossible of my request
the points going to Max
and thanks for the rest
Avatar of Evyatar

ASKER

O.K
if there is consensuses about the impossible of my request
the points going to Max
and thanks for the rest
Thanks for the points Eyvatar.. :-)

Happy to help...

Max.