Solved

select box

Posted on 2001-06-10
8
485 Views
Last Modified: 2011-09-20
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
Comment
Question by:Evyatar
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 15

Expert Comment

by:a.marsh
ID: 6173108
There is limited browser support for styles on form elements - particularly on select elements.

What web browser are you using?

Ant
0
 
LVL 15

Expert Comment

by:a.marsh
ID: 6173113
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
 

Author Comment

by:Evyatar
ID: 6173143
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
 
LVL 19

Accepted Solution

by:
DreamMaster earned 100 total points
ID: 6173180
You can't...

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

Max.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 6173199
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
 

Author Comment

by:Evyatar
ID: 6173212
O.K
if there is consensuses about the impossible of my request
the points going to Max
and thanks for the rest
0
 

Author Comment

by:Evyatar
ID: 6173215
O.K
if there is consensuses about the impossible of my request
the points going to Max
and thanks for the rest
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 6175993
Thanks for the points Eyvatar.. :-)

Happy to help...

Max.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How do i remove the outer scrollbar? 2 38
Tags from access to excel 3 32
Split in Javascript 5 31
Not seen Link button 5 19
Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now