PDA

View Full Version : Style Problems....


aceinstaller
03-07-2001, 02:20 PM
Hi. Can someone please tell me why the drop down box i have created isn't changing color?

The code i am using is;

<p>Subject:<br><select name="subject" size=1 style= "background:; color: fff666">
<option value="Web Site"> Web Site</option>
<option value="Question"> Question</option>
<option value="Advertising"> Advertising</option>
<option value="Other"> Other</option>

For some reason the text is changing color, but the cackground isn't! The code; style="background:; color: fff666" works fine for me with normal text boxes etc, but just doesn't seem to want to work with a drop down menu....please help....

Andy

huythuy
03-07-2001, 02:32 PM
<p>Subject:<br><select name="subject" size=1 style= "background {color=fff666}">
<option value="Web Site"> Web Site</option>
<option value="Question"> Question</option>
<option value="Advertising"> Advertising</option>
<option value="Other"> Other</option>

Marlboro
03-07-2001, 04:03 PM
Just a bit of a typo it looks like:
try this ==(note the use of the background attribute and the semi-colons)
<p>Subject:<br><select name="subject" size=1 style= "background-color: #fff666; color:red;">
<option value="Web Site"> Web Site</option>
<option value="Question"> Question</option>
<option value="Advertising"> Advertising</option>
<option value="Other"> Other</option>
</select>

<p>Subject:<br><select name="subject" size=1 style= "background:; color: fff666">

Dr. Web
03-07-2001, 05:13 PM
I'd be interested in finding a way to make this work in N4.7. The code works in IE and N6, but N4.7 has limited style sheet support. Workaround?

aceinstaller
03-10-2001, 04:19 AM
Thanks to everone who has helped me. It now all works great :)

Thanks again

Andy

Marlboro
03-12-2001, 11:04 AM
Dr Web -
I think NS4.x will not support this type of CSS. Those versions were/are notoriously bad for lack of support for form elements - this has been greatly improved in NS6.



Originally posted by Dr. Web
I'd be interested in finding a way to make this work in N4.7. The code works in IE and N6, but N4.7 has limited style sheet support. Workaround?

Dr. Web
03-20-2001, 06:42 PM
Yes. I hate to say it, but N6 does seem to support more CSS, and 'other' features...which were <ahem!> overlooked in N4.7