What I would like to do is that the drop-down list that comes out of a select
that in this case would be a set of options
, have a different background color and when they are passed over it modify the key of it.
CSS code:
select option {
color:Red;
}
I already applied the above but I load the page and it does not mark any change, the letter is still black. The design can be applied in other clases
less when trying to do the options.
Select General Code (css):
select {
/* styling */
background-color: white;
border: thin solid blue;
border-radius: 4px;
display: inline-block;
font: inherit;
line-height: 1.5em;
padding: 0.5em 3.5em 0.5em 1em;
/* reset */
margin: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-appearance: none;
-moz-appearance: none;
}