shocker-z Posted March 21, 2006 Share Posted March 21, 2006 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? Quote Link to comment Share on other sites More sharing options...
Javizy Posted March 21, 2006 Share Posted March 21, 2006 <select style="height:20px"> should do it, or you could use a class to keep styles out of the HTML. Quote Link to comment Share on other sites More sharing options...
shocker-z Posted March 21, 2006 Author Share Posted March 21, 2006 [!--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.. Quote Link to comment Share on other sites More sharing options...
Gast Posted March 23, 2006 Share Posted March 23, 2006 [!--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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.