HTML CSS examples for CSS Form:input select
Styling background of selected option
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .body > select > option { padding-top: 1px; cursor: default; } .body > select > option:checked { box-shadow: 0 0 10px 100px #00B2F3 inset; } .body > select { height: 100%; width: calc(100% - 10px); color: #00B2F3; border: 1px solid #00B2F3; padding: 0px 0px; } </style> </head> <!--from w w w . j a v a 2s. c om--> <body> <div class="body"> <select size="7" class="form-control" id="subjects"> <option>one</option> <option>two</option> <option>three</option> </select> </div> </body> </html>