jtified Posted August 21, 2009 Report Posted August 21, 2009 (edited) I'm having a problem regarding my select form in my site. Here's A PART of my site where I'm having problems with: Select course College of Computer Studies B.S. Computer Science B.S. Information Technology B.S. Information Management When I'm using Mozilla Firefox, the SELECT form auto re sizes itself when I click the button. To the point where all of the text in the OPTION element can be read and comes back to it's normal size once I'm done selecting and that's great, no problem with that. THE PROBLEM IS when I'm using Internet Explorer, it doesn't work. What I mean is the SELECT form only has the width of 155px, ( which I set ) so in that case, I can't read the OPTIONS text completely. How can I fix this? I hope someone can help me with this problem. Cheers! Edited August 21, 2009 by jtified
Wickham Posted August 21, 2009 Report Posted August 21, 2009 I'm not sure what you mean by auto resizing in Firefox. I tried a form of mine with a width for the select box which was less wide than needed for the options text and it didn't resize to show all the content. I suggest that you make the select box the width it needs to be to show all the option text.
falkencreative Posted August 21, 2009 Report Posted August 21, 2009 This is one solution using jquery (I'm sure it could be done with regular javascript too) http://css-tricks.com/select-cuts-off-options-in-ie-fix/
jtified Posted August 21, 2009 Author Report Posted August 21, 2009 So there's no good fix using CSS here..*sigh*. Thanks a lot though.
Guest hammadtariq Posted July 2, 2010 Report Posted July 2, 2010 It's a classic IE problem, there are work-arounds available if you know javascript, the work-arounds range from pretty basic onmouseover javascript calls to the advance create your own select box using frameworks. I wrote a blog about this along with the solutions of how to expand on mouseover or how to create your own SELECT element which works in every browser. Have a look at: solving select width problem in IE
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