Internet Explorer Select Width Bug Workaround
Setting the fixed width of a <select> element in Internet Explorer will cause all of the select options that are wider than the select's set width to be cropped.
This jQuery plugin proposes a work around.
Applying this plugin makes the select element in Internet Explorer appear to work as it would work in Firefox, Opera etc...
As of 17th June 2010, it is confirmed to work in Internet Explorer versions 6, 7 and 8.
This plugin adds three additional elements to the DOM; a <span> element that acts as the select container; an <a> element that acts as an overlay; and another <span> element within the <a> element that adds the visual part.
Class names representing the browser version and which state the select is in are added to the container and the the overlay.
For Internet Explorer 6, you should also use the bgiframe plugin. Just include it in your document and the ieSelectWidth plugin will automatically detect and use it.
View the page source to see how to use this jQuery plugin.
Contact me here with any queries or bug reports etc.
Obviously the demo should be viewed with Internet Explorer in order to see the examples working.
A new version of this plugin that adds support for CSS borders and padding can be found here.