<!DOCTYPE html> | |
<style> | |
#foo { | |
background-color: lightgreen; | |
color: red; | |
padding-left: 20px; | |
} | |
#bar { | |
padding-left: 20px; | |
text-decoration: underline; | |
} | |
</style> | |
<select multiple autofocus> | |
<option id="foo">foo</option> | |
<option id="bar" selected>bar</option> | |
</select> |