Answers for "change color of text for option in selector html"

1

how to change selection color of text in css

::-moz-selection { /* Code for Firefox */
  color: red;
  
  background: yellow;
}

::selection {
  color: red;
  background: 
  yellow;
}
Posted by: Guest on April-17-2021
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

Code answers related to "change color of text for option in selector html"

Browse Popular Code Answers by Language