I have been trying to change the default background white color of the option inside the select property, but with no success. I tried to put to my select property an rgba color but it just won't accept it together with my background image(dropdown arrow) so i wrapped it with a div and gave it my background rgba color as you can see here:
<div class="language-dropdown">
<label>
<select class="language-select">
<option class="language-option" selected>English</option>
<option class="language-option">Italian</option>
<option class="language-option">Russian</option>
</select>
</label>
</div>
When I try to give background rgba to .language-option it just won't change anything, but, if I give it a regular color, for exmaple background:red;, it works.
.language-dropdown {
background: rgba(255, 255, 255, 0.4);
display: inline-block;
}
.language-select {
background: url("http://s10.postimg.org/otetjsoat/language_Arrow.png") no-repeat right;
background-size: auto 42%;
width: 88px;
background-position-x: 73px;
-webkit-appearance: none;
-moz-appearance: none;
color: #fff;
border: none;
text-indent: 0.01px;
padding-left: 5px;
}
.language-option {
background-color: rgba(255, 255, 255, 0.4);
/*WONT WORK!!! , but "background-color:red;" will*/
}
Note: Works on Firefox, while not on Chrome!
You can find my whole fiddle here