Struggling to find the right words to explain this issue.
Take a look at this fiddle for code examples.
The problem arose when using a jQuery plugin[1] to customize select
elements. I need an absolutely positioned div with a minimum width.
Browsers display the div the same when the list has no scrollbar.
However, issues arise when the list is too long:
- IE9 places the scrollbar outside the content area, increasing the minimum width.
- Other browsers place the scrollbar inside the content area, maintaining minimum width and adding a horizontal scrollbar if needed.
- IE9 in compatibility mode displays the scrollbar similarly to other browsers.
Looking for a way to make the list render uniformly across all browsers. Preferably, seeking a CSS-only solution without hacks or conditional comments.
[1] No affiliation with "abeautifulsite.net" whatsoever.