css - Reducing the font size of the drop down in HTML -


i have dropdown in html page has width more 250px.

i need change dropdown font size width gets reduced.

i tried using font tag below:

<font size='6'>     <select>     <option></option>     .     .     .     </select> </font> 

the above code didn't work.

when tried reducing width hardcoding value width='50' hides full text of dropdown becomes hard select particular option.

suggest solution width gets reduced , options visible in dropdown.

note: should compatible in ie8

to change font size, apply font-size:xxpx; css property:

<select style="font-size:6px;">      <option>option1</option>      <option>option2</option>      <option>option3</option>  </select>

or, if want put in stylesheet:

select{    font-size:6px;  }
<select>      <option>option1</option>      <option>option2</option>      <option>option3</option>  </select>


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -