HTML CSS examples for CSS Property:background
Put rgba background for option in select
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!--from ww w.j a va 2 s .c om--> background:black; } .language-dropdown { background: rgba(255, 255, 255, 0.4); display: inline-block; } .language-select { background: url("https://www.java2s.com/style/demo/InternetExplorer.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; text-overflow:""; padding-left: 5px; } .language-option { background-color: rgba(212, 31, 31, 0.48); } </style> </head> <body> <div class="language-dropdown"> <label> <select class="language-select"> <option class="language-option" selected>English</option> <option class="language-option">Hebrew</option> <option class="language-option">Russian</option> </select> </label> </div> </body> </html>