Is it possible to control the height of <select></select> form elements?
The default height is (guessing) around 20px -- I'd like to have one display at 15px tall. Can it be done?
| SitePoint Sponsor |

Is it possible to control the height of <select></select> form elements?
The default height is (guessing) around 20px -- I'd like to have one display at 15px tall. Can it be done?
- Mike
http://www.georgiaoffroad.com





I'm not too sure.
but you could try and see if it works.
I do know that modifiying the font size affects the height of the menus. =)
[note]
You can also modify width for input submit/reset buttons and more. just for archiving purposes =)
[/note]
"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
-- Albert Einstein





This piece will change the font-size of the elements in your SELECT tag. It's not possible to change the line-height for the OPTION tag directly.
The reason why you can change the line-height of text in say a P tag is because as far as the bropwser is concerned, the text is all one element that happens to be spread out over several lines.
Option elements are one per line and each it it's own element.
<style type="text/css">
<!--
select { font-family: verdana; font-size: 8pt; }
-->
</style>
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
Bookmarks