Jump to content

Archived

This topic is now archived and is closed to further replies.

shocker-z

height of a select box

Recommended Posts

How can i limit the height of a select box when someone clicks on it? because atm its right to the top of the page and looks UGLY! I've searched google but not found what im needing.. maby a CSS job?

Share this post


Link to post
Share on other sites
<select style="height:20px"> should do it, or you could use a class to keep styles out of the HTML.

Share this post


Link to post
Share on other sites
[!--quoteo(post=357057:date=Mar 21 2006, 07:32 PM:name=Javizy)--][div class=\'quotetop\']QUOTE(Javizy @ Mar 21 2006, 07:32 PM) [snapback]357057[/snapback][/div][div class=\'quotemain\'][!--quotec--]
<select style="height:20px"> should do it, or you could use a class to keep styles out of the HTML.
[/quote]

Nope it's not working.. :(

I've testing in IE 6, Firefox and opera with no joy..

Share this post


Link to post
Share on other sites
[!--quoteo(post=357060:date=Mar 21 2006, 07:46 PM:name=shocker-z)--][div class=\'quotetop\']QUOTE(shocker-z @ Mar 21 2006, 07:46 PM) [snapback]357060[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Nope it's not working.. :(

I've testing in IE 6, Firefox and opera with no joy..
[/quote]

Do you mean the actual box to select itself, or the options that appear in the select box? The options that appear cannot be moved or changed, they appear where they want in different browsers. If you have a lot of options, sometimes they go right to the top of the screen which doesnt look that great I agree.

If you really want to make them appear exactly where you want them, etc. then you would have to make one in JavaScript/DHTML. Take a look around the web for free ones or how to make one.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.