Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Color With CSS

Status
Not open for further replies.

Tezdread

Technical User
Oct 23, 2000
468
GB
Hello, I am trying to change the color of a drop down menu, I guess it would be done with CSS because i can't do it another way.

This is what I have so far:

<select name=&quot;Domain Types&quot; style=&quot;background-color: rgb(0,0,0); color: rgb(255,0,0); border-left: 1px solid rgb(0,180,0); border-right: 1px solid rgb(0,180,0); border-top: 1px solid rgb(0,180,0); border-bottom: 1px solid rgb(0,180,0)&quot;>
<option>.co.uk</option>
<option>.uk.co</option>
<option>.uk.com</option>
</select>

But I can't get the grey border, button and arrow to change color? I would like it to match these.

<input type=&quot;text&quot; name=&quot;textfield&quot; maxlength=&quot;65&quot; value=&quot;Your Domain Name&quot; size=&quot;17&quot; style=&quot;background-color: rgb(0,0,0); color: rgb(255,0,0); border-left: 1px solid rgb(0,180,0); border-right: 1px solid rgb(0,180,0); border-top: 1px solid rgb(0,180,0); border-bottom: 1px solid rgb(0,180,0)&quot;>

And:

<INPUT TYPE=&quot;SUBMIT&quot; VALUE=&quot;Submit&quot; style=&quot;background-color: rgb(0,0,0); color: rgb(255,0,0); border-left: 1px solid rgb(0,180,0); border-right: 1px solid rgb(0,180,0); border-top: 1px solid rgb(0,180,0); border-bottom: 1px solid rgb(0,180,0)&quot;>

Thanks in advance hope we can get it sorted.
 
The select box has very limited options as to what you can change ( I think just text color and background-color as far as colors go) jared@aauser.com
 
Thanks jaredn, it is looking more like tht is the case, well I guess I can't have everything :) &quot;It often seems like I want the impossible&quot;
 
If you really enjoy hurting yourself, you could create your own select box. I create a (kinda) functional combo box if you wanna see it, let me know.

If you make it yourself, you can make it look however you want. jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top