Answers for "select placeholder color syled componets"

1

how to change placeholder color of select

select {
  color: #9e9e9e;
}
option:not(:first-of-type) {
  color: black;
}
Posted by: Guest on July-27-2021
1

change place holder color of select

/* Html */
<select id="businesstype">
  <option value="" disabled selected hidden>Business Type</option>
  <option value="">Restaurant</option>
  <option value="">Hotel</option>
</select>

/* Css */
#businesstype {
  color: gray;
}

#businesstype option {
  color: black;
}
Posted by: Guest on September-01-2021

Browse Popular Code Answers by Language