How to change the text color of select option?

ARyan MAurya
October 20, 2020
No Comments

Have you ever wanted to change the text color of a select option element of a drop down?

<select>
    <optgroup label="select one option">
        <option>one</option>  
        <option>two</option>  
        <option>three</option>  
        <option>four</option>  
        <option>five</option>
    </optgroup>
</select>

Just copy paste the below css in your css file.

select option{
    color: red;
}

 

Post your comment

Your email address will not be published. Required fields are marked *