Answers for "Select dropdown style"

4

style a <select> dropdown

select {
   -webkit-appearance: none;
   -moz-appearance: none;
   appearance: none;
   background-image: url(...);
}
select::-ms-expand {
    display: none;
}
@media screen and (min-width:0\0) {
    select {
        background-image:none\9;
        padding: 5px\9;
    }
}
Posted by: Guest on October-02-2021
0

Select dropdown style

<select class="selectpicker">
  <option>Mustard</option>
  <option>Ketchup</option>
  <option>Relish</option>
</select>
Posted by: Guest on October-08-2021

Browse Popular Code Answers by Language