Answers for "selected option colour"

CSS
1

css selected color

::selection {
    background-color: #222;
    color: white;
}
Posted by: Guest on May-06-2020
0

html select option text color

<style>
  #selector{
  color:red;
	}
</style>

<select name="" id="selector">
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
</select>
Posted by: Guest on June-29-2021

Browse Popular Code Answers by Language