How do you set the background color of an item in an HTML list?
select.list1 option.option2 { background-color: #007700; }
<select class="list1"> <option value="1">Option 1</option> <option value="2" class="option2">Option 2</option> </select>
2.1m questions
2.1m answers
60 comments
57.0k users