zeldyzeldy Posted January 3, 2006 Share Posted January 3, 2006 Hello,Does anyone know if I can use style.overflow="auto"with a select element so that if any of the optionsare longer than the select box I can scroll to see the rest of the text? Link to comment Share on other sites More sharing options...
Jonas Posted January 3, 2006 Share Posted January 3, 2006 I thought that was default for select... Link to comment Share on other sites More sharing options...
aspnetguy Posted January 3, 2006 Share Posted January 3, 2006 according to this no:http://msdn.microsoft.com/library/default....es/overflow.aspBut this is a microsoft article and it may just apply to IE.As far as I know you cannot use the overflow attribute with a select tag. Link to comment Share on other sites More sharing options...
aspnetguy Posted January 3, 2006 Share Posted January 3, 2006 lol, We must have replied at the same time. I think they mean horizontally. Link to comment Share on other sites More sharing options...
Jonas Posted January 3, 2006 Share Posted January 3, 2006 Horizontal scrolling for a select dropdown menu? Why though? Is it strictly necessary that the select element doesn't go wider than a certain width? I usually just refrain from assigning a width to it, and it automatically gets wide enough... Link to comment Share on other sites More sharing options...
zeldyzeldy Posted January 3, 2006 Author Share Posted January 3, 2006 Thank you both for your replies.I need the select to be a specific widthso that all my components will fitnicely on the page without the userhaving to scroll. In NN the scroll barcomes as needed (it's just for a couple characters)but in IE (5.5) although I tried many overflowoptions I only get a vertical scroll bar and nota horizontal one.Did anyone experience this? Link to comment Share on other sites More sharing options...
aspnetguy Posted January 3, 2006 Share Posted January 3, 2006 That is just the way IE is...I don't think you can change it. In IE6 there is no horizontal scrollbar it just gets cutoff. Link to comment Share on other sites More sharing options...
zeldyzeldy Posted January 3, 2006 Author Share Posted January 3, 2006 ok. Thanks, Justin for the clarification. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now