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 Quote
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. Quote
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/ Quote
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. Quote
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 Quote
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.
Note: Your post will require moderator approval before it will be visible.