Solved

select box

Posted on 2001-06-10
8
484 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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" …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

708 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

12 Experts available now in Live!

Get 1:1 Help Now