jPaulB
Coder
Hi Everybody,
I'm planning a form that will use several <SELECT> tags.
What I want to do is manage the <option value> part of the script so that the background and text-colors are specific colours.
How do I do this?
many thanks,
Paul
I'm planning a form that will use several <SELECT> tags.
CSS:
.form-container .custom-select {
position: relative;
font-family: Cabin SemiBold", cursive, sans-serif;
font-weight: bold;
font-size: normal;
}
HTML:
<div class="custom-select" style="width:85%;">
<select name="bWhat" id="bWhat">
<option value="0">What do you want to do?</option>
<option value="1">Go back to bed</option>
<option value="2">Yell at the dog</option>
<option value="3">Be persistent</option>
</select>
</div>
What I want to do is manage the <option value> part of the script so that the background and text-colors are specific colours.
How do I do this?
many thanks,
Paul