Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Droplist size of Select control in IE11

$
0
0

I'm using a select control to display a set of options. I set the size of my select control to around 100px. The length of the options I display is very small when compared to size of the select control. In IE9, eventhough the size of the values were less the droplist size was similar to that of the select control. Now when I use the same code in IE11the select control size remains same but the droplist size adjusts to the lenth of the option values. Is there any way I can adjust the droplist size to the length of the select control?

HTML code

<select CLASS="SELECT SELECTOPTION" ID="SELECT_OPTION"  >
          <option value="1">Option_1</option>
          <option value="2">Option_2</option>
       </select>

CSS style sheet

select.selectoption { width :37em;
                    height:0px;                    
                    top:0px;                   
                    }



Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>