Connecting Tech Pros Worldwide Forums | Help | Site Map

Set the height of a drop down

Familiar Sight
 
Join Date: Sep 2006
Posts: 142
#1: Oct 30 '08
Hi,

Is there a way of setting the height of a drop down box?
I could manage this by setting the font-size but have to set it really big to get the height of the drop down to increase!

Please Assist!

Member
 
Join Date: Mar 2008
Posts: 60
#2: Oct 30 '08

re: Set the height of a drop down


Try adding a 'size' variable to the menu.
Familiar Sight
 
Join Date: Sep 2006
Posts: 142
#3: Oct 30 '08

re: Set the height of a drop down


Thanks for the assist, but not sure how to do this:

Can you please provide example for this dropdown height.


Thanks
Expert
 
Join Date: Aug 2008
Posts: 397
#4: Oct 30 '08

re: Set the height of a drop down


You might consider setting a minimum-height for it (so its height will expand vertically with user discretion to scale fonts). IE/6 and down do not support min-height. The work around is to feed the lower IEs simple height. The CSS might read something like:
Expand|Select|Wrap|Line Numbers
  1. #whatever {min-height: 150px;}
  2. * html  #whatever {height: 150px;} /* hack for IE/6 */
  3.  
Better yet, provide clickable link in your post to the page/problem in question for a more accurate reply regarding your paticular situation at hand...
Reply