homepage Welcome to WebmasterWorld Guest from 54.198.42.105
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Set option height
vlg789




msg:4307801
 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




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

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




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

option
{
height:25px;
}


did the trick

alt131




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

Hi vlg789,

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved