How to style a dropdown with CSS only without JavaScript
UsingSo now in order to hide the default styling - it's as easy as adding the following rules on our select element:-moz-appearance
with thenone
value on a combobox now remove the dropdown button
<style>
select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
select::-ms-expand { /* for IE 11 */
display: none;
}
</style>
Comments
Post a Comment