css and combo-box/pulldown list

liunx

Guest
Hi,<br />
<br />
I have a problem with applying style sheets to pulldown lists/combo boxes. Anyonw got any idea??<br />
<br />
Cheers<br />
<br />
egil<!--content-->well, hard to help you if we don;t know what kind of problem your having. Heres some sample code with (inline) styles applied. THis mayh help.<br />
<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><br />
<br />
<html><br />
<head><br />
<title>Untitled</title><br />
</head><br />
<br />
<body><br />
<form><br />
<p>Subject:<br><select name="subject" size=1 style= "background-color: #fff666; color:red;"> <br />
<option value="Web Site"> Web Site</option> <br />
<option value="Question"> Question</option> <br />
<option value="Advertising"> Advertising</option> <br />
<option value="Other"> Other</option> <br />
</select> <br />
<br><br><br />
<select name=""><br />
<option selectd>option Black</option><br />
<option style="color: red">option Red</option><br />
<option style="color: blue">option Blue</option><br />
<option style="color: green">option Green</option><br />
<option style="color: yellow">option Yellow</option><br />
<option style="color: #cccccc">option Grey</option><br />
</select><br />
<br />
<br />
</form><br />
<br />
<br />
</body><br />
</html><!--content-->Sorry, I should have explained better. <br />
<br />
I have a form where I apply styles from an external style sheet to all the form elements. This include scrollbar color, borders and font on text areas, border and font on text fields, etc. My problem is that on pulldown menus I'm having problems with controlling the border as well as the color on the pulldown arrow. <br />
<br />
check out the url : <br />
<!-- m --><a class="postlink" href="http://www.jacobnine.no/stene-johansen/timeBestilling/timeBestilling.asp">http://www.jacobnine.no/stene-johansen/ ... illing.asp</a><!-- m --><br />
<br />
Cheers <br />
<br />
egil<!--content-->not sure if you will have any luck changing those. a select box isn't controlled by the browser like a textbox is, it is controlled by your OS.<!--content-->
 
Back
Top