How to style a dropdown with CSS only without JavaScript

   
Using -moz-appearance with the none value on a combobox now remove the dropdown button
So now in order to hide the default styling - it's as easy as adding the following rules on our select element:
 
<style> 
select {
   -webkit-appearance: none;
   -moz-appearance: none;
   appearance: none;
}

select::-ms-expand { /* for IE 11 */
    display: none;
}
</style> 


Comments

Popular posts from this blog

Real-Time Web Interface to MQTT using Socket.io and Node.js

Insert session variable into MySQL database

Insert CheckBox and Radio button Data in MySQL Database Using PHP