I am trying to change the background color of a dropdown in HTML to transparent.
HTML
<select id="nname"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select>
CSS
#nname { padding: 5px; color: #000; font-size: 12px; background: transparent; -webkit-appearance: none; }
however, the background remains white and the text remains black. Any ideas?
css
user2557464
source share