I want to remove the dropdown arrow from a HTML <select>
element. For example:
<select style="width:30px;-webkit-appearance: none;"> <option>2000</option> <option>2001</option> <option>2002</option> ... </select>
How to do it in Opera, Firefox and Internet Explorer?
Every Bootstrap dropdown button or link has an ::after selector in CSS. ::after selector is often used to insert some text after the content of the element. In this case, the content is a dropdown arrow. To remove it, just make the content go 'none'.
Drop-down Arrow for Chrome, Firefox, Opera, Internet Explorer 10+ For these browser, it is easy to set the same background image for the drop-down in order to have the same arrow. To do so, you have to reset the browser's default style for the select tag and set new background rules (like suggested before).
There's no need for hacks or overflow. There's a pseudo-element for the dropdown arrow on IE:
select::-ms-expand { display: none; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With