Does anyone know how using CSS I can make a text field change color when a user hovers over it?
| SitePoint Sponsor |

Does anyone know how using CSS I can make a text field change color when a user hovers over it?
You'll need a bit of scripting help to force IE6 and under to work properly - there are several ways but I usually just add the whatever hover script.Code:input:hover, textarea:hover {background:#ccc;}
Code:<!--[if lt IE 7]> <style type="text/css"> body {behavior: url(scripts/csshover.htc);} </style> <![endif]-->
Bookmarks