Answers for "html select selected color"

CSS
1

css selected color

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

html select color

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <link rel="stylesheet" href="style.css"/>
        <title>HTML Select Color</title>
    </head>
<body>
	<input type="color" id="colorPicker">
    <!-- You can change the color with value, like this: <input type="color" value ="#eee"> 
    The Default COlor is #000 (Black)
    YOu can also edit the css.
    -->
</body>
Posted by: Guest on February-09-2022
1

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 "html select selected color"

Browse Popular Code Answers by Language