Answers for "how to style input type select option"

CSS
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) {
    select {
        background-image:none9;
        padding: 5px9;
    }
}
Posted by: Guest on October-02-2021
0

select input field css

input[type=number]{
  width: 2rem;
  height: 2rem;
}
input[type=text]{
  width: 10rem;
  height: 3rem;
}
input[type=password]{
  border: 1px solid #ff0000;
}
input[type=date]{
  cursor: pointer;
}
Posted by: Guest on September-14-2021

Code answers related to "how to style input type select option"

Browse Popular Code Answers by Language