tutorials.de - select > option .class styling

by SpiceLab

HTML

<select>
  <option value="Auweg">Auweg</option>
  <option value="Badhausstrasse">Badhausstrasse</option>
  <option class="highlight" value="Bahnhofplatz">Bahnhofplatz</option>
  <option value="Bahnhofstrasse">Bahnhofstrasse</option>
  <option value="Bahnweg">Bahnweg</option>
</select>

CSS

select {background-color:cornflowerblue}
.highlight {background-color:lightgray}