Welcome to WebmasterWorld Guest from 54.226.189.112

Forum Moderators: not2easy

Message Too Old, No Replies

Set option height

     

vlg789

12:54 pm on May 4, 2011 (gmt 0)



I am applying a style (as below) to a select box, and I want the select box height to be the same as my input boxes, how can do this ?

option
{
height:25px;
width:150px;
padding:7px 0 0 45px;
background-repeat:no-repeat;
}

I am aware that select renders as a GUI control, and therefore is very unreliable to style. I'm not interested in cross-browser code.

PS: if matters I want to make a country with flags drop down without jscript.

jennyj

1:09 pm on May 6, 2011 (gmt 0)

5+ Year Member



what css is applied to your input boxes?
what css is applied to the <select> tag
what doctype are you using?
what browser are you targeting (and why not make it cross-browser)?

vlg789

1:43 pm on May 18, 2011 (gmt 0)



option
{
height:25px;
}


did the trick

alt131

8:54 pm on May 18, 2011 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Hi vlg789,

Pleased you have a solution - and a big welcome to WebmasterWorld :)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month