For IE 8 there is a simple pure css-based solution:
select:focus {
width: auto;
position: relative;
}
(You need to set the position property, if the selectbox is child of a container with fixed width.)
Unfortunately IE 7 and less do not support the :focus selector.
Related Contents:
- How do I make a placeholder for a ‘select’ box?
- Hide scroll bar, but while still being able to scroll
- Tools to selectively Copy HTML+CSS+JS From A Specific Element of DOM [closed]
- How to remove the default arrow icon from a dropdown list (select element)?
- Remove the complete styling of an HTML button/submit
- css ‘pointer-events’ property alternative for IE
- Change select box option background color
- Remove Select arrow on IE
- Make multiple-select to adjust its height to fit options without scroll bar
- How to get equal width of input and select fields
- Div with horizontal scrolling only
- How do I get rid of an element’s offset using CSS?
- How can I limit table column width?
- How can change width of dropdown list?
- How to change color of disabled html controls in IE8 using css
- CSS-Only Scrollable Table with fixed headers [duplicate]
- absolute positioned anchor tag (with no text) not clickable in IE
- Internet Explorer 10 Windows 8 Remove Text Input and Password Action Icons
- SVG with width/height doesn’t scale on IE9/10/11
- Why does IE make password boxes smaller than text boxes?
- Gradient colors in Internet Explorer
- Input boxes with transparent background are not clickable in IE8
- Div 100% height works on Firefox but not in IE
- IFrame background transparent in IE
- How to vertically center a container in Bootstrap?
- How to center an iframe horizontally?
- Prevent line-break of span element [duplicate]
- Why are my CSS3 media queries not working on mobile devices?
- How do I remove the blue styling of telephone numbers on iPhone/iOS?
- Position: absolute and parent height?
- Make grid container fill columns not rows
- How to align entire html body to the center?
- Unicode character as bullet for list-item in CSS
- Understanding the grid classes ( col-sm-# and col-lg-# ) in Bootstrap 3
- angular/material2 mat-spinner resize
- How to keep footer at bottom of screen [duplicate]
- How to always show the vertical scrollbar in a browser?
- Blurry downscaled images in Chrome
- How to make div’s percentage width relative to parent div and not viewport
- Selectable in HTML tag
- Making a piece of text non-breaking?
- How to put two divs side by side
- How can I create a marquee effect?
- overflow: hidden; doesn’t work on Chrome with IFRAMEs?
- How to center multiple divs inside a container in CSS
- Can I ignore some website element when navigating using the tab key?
- Textfield with only bottom border [closed]
- Developer oriented CSS/HTML tutorial/book [closed]
- Setting overflow-y causes overflow-x to change as well [duplicate]
- How to add html special character (right-arrow) using content property of css? [duplicate]