coreybryant
asked on
Form Field Backgrounds
I was using this code to highlight the form fields (the colors are not right but not the real issue):
I was completing another form, and that company had the form fields highlighted when I was in that form. I took a look at their style sheet, and found;
I looked on IE9, Firefox 3.6, and Opera 11.1 to start off with - and it seems this code has the behavior that I am looking for.
Basically, I am just looking for expert(s) to confirm (or deny) this is better / works well in the browsers, etc.
Thanks!
<input type="text" name="sample" onfocus="this.style.backgroundColor='#FFF380'" onblur="this.style.backgroundColor='#ff0000'" />
I had noticed though that when I go to the next form field, the background color still had the highlighted color.I was completing another form, and that company had the form fields highlighted when I was in that form. I took a look at their style sheet, and found;
#formbox input:focus {background: #efeff7;}
I looked on IE9, Firefox 3.6, and Opera 11.1 to start off with - and it seems this code has the behavior that I am looking for.
Basically, I am just looking for expert(s) to confirm (or deny) this is better / works well in the browsers, etc.
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER