Bhupinder kumar Bhupinder kumar - 4 months ago 47
CSS Question

How to give the padding for option with css only

How we can give the padding for option in select box or height ?
like this :

<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="vw">VW</option>
<option value="audi" selected>Audi</option>


Yes you cannot add custom style to Select input element since they are render by User agents (Browsers). You can use some plugin to render select element so that you can customize as you wish.