Need to select only first option in select tag and give it different color than the others.
:first-child
, :first-of-type
, :nth-of-type
HTML
<div class="input">
<select>
<option value="" selected disabled>Your interests</option>
<option value="" >Test</option>
<option value="" >Test</option>
</select>
CSS
.input select:first-child
{
color: gray;
}
Need to make font color of only first option tag to gray. Using first child keeps selecting all option tags and giving them all same gray color. Using bootstrap 4 if it means something.