Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 497
  • Last Modified:

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.
0
Evyatar
Asked:
Evyatar
  • 3
  • 2
  • 2
  • +1
1 Solution
 
a.marshCommented:
There is limited browser support for styles on form elements - particularly on select elements.

What web browser are you using?

Ant
0
 
a.marshCommented:
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
0
 
EvyatarAuthor Commented:
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.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
DreamMasterCommented:
You can't...

The border of a select box is one thing you cannot change...

Max.
0
 
COBOLdinosaurCommented:
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&
0
 
EvyatarAuthor Commented:
O.K
if there is consensuses about the impossible of my request
the points going to Max
and thanks for the rest
0
 
EvyatarAuthor Commented:
O.K
if there is consensuses about the impossible of my request
the points going to Max
and thanks for the rest
0
 
DreamMasterCommented:
Thanks for the points Eyvatar.. :-)

Happy to help...

Max.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now