My contact form has fields (class="text") and I'm trying to make the usual white background color change to a different color when someone clicks inside it (to type). The CSS codes I'm using is below, and it works great in Firefox, but it doesn't in IE6. I can't seem to figure out why !!!! Is there another way I should be doing this in CSS?
input.text {
BACKGROUND: #ffffff;
}
input.text:focus, textarea:focus {
background-color: #f8f8f8;
}
2006-12-18
13:57:34
·
2 answers
·
asked by
only4u
1
in
Computers & Internet
➔ Programming & Design
*Update*
I have tried changing both to "background", "background-color", and even "color" in the css file. I've removed all capitilization as well. I've also tried changing the class and css to:
.field {
background: #ffffff;
}
.field:focus {
background: #f8f8f8;
}
The problem seems to be that IE can't understand the focus part of the CSS, while FF has no problem doing so. There must be an alternative to this for it to work in both though?
2006-12-18
15:40:55 ·
update #1