4783Re: Background color for dropdown - possible?
- Sep 7, 2004--- In firstname.lastname@example.org, "Alec Burgess" <burale@a...> wrote:
> When creating a form with a dropdown, is it possible to specify thein a
> background color?
> I'm working with a form where the user is asked to select a color
> dropdown and I'd like to be able to make the dropdown take thebackground
> color of the surrounding area so its possible to see which colorsare "bad"
> because they won't show up.bgcolor="colorname" in both
> See sample HTML below my sig. I tried sticking a
> <form> and <select> elements to no effect which seems to beconfirmed by
> looking at HTMLib "The HTML reference Library" by Stephen LeHunt.aliceblue;">
> Regards ... Alec
> <select name="color">
> <option value="aliceblue" style="color:
> </option><option value="antiquewhite"
> </option><option value="green" style="color:
> </option><option value="aquamarine"
> </option><option value="azure" style="color:
> azureAs sister said, use CSS. Here's a very simple example
<option style="background-color: #ffffcc">First Choice</option>
<option style="background-color: #ccccff">Second Choice</option>
<option style="background-color: #99cccc">Third Choice</option>
- << Previous post in topic Next post in topic >>