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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problems styling Form Menu

Status
Not open for further replies.

Benluke

Technical User
Apr 2, 2004
112
GB
Hi

Ive been styling some forms which is working fine but i need to style a dropdown list/menu the same as my input boxes and i basically cant do it.

How do you do this? Its really bugging me

Thanks for any help / advice

Ben
 
Show us your code / style, we can help better from there.

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
ok,

input {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #06125F;
border-spacing : 3px;
border-left : thin inset #0000CC;
border-top : thin inset #0000CC;
border-right : thin inset #D0D5FF;
border-bottom : thin inset #D0D5FF;
border-collapse : collapse;
}
option value {
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #06125F;
border-spacing : 3px;
border-left : thin inset #0000CC;
border-top : thin inset #0000CC;
border-right : thin inset #D0D5FF;
border-bottom : thin inset #D0D5FF;
border-collapse : collapse;
}
 
Does this help?

Code:
<style type="text/css">

input, select {
    font-family: 'Trebuchet MS';
    color: red;
    background-color: yellow;
    font-size: 15px;
}

</style>

Code:
<form name="f">
    <input type="text" name="t" />
    <select name="s">
        <option>one</option>
        <option>two</option>
    </select>
</form>

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
ahh, you should use 'select', not 'option value'.

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top