Posted By

will on 03/25/08


Tagged

form css input highlight textarea


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

blackabee
asturi
monapdx


Highlight active form fields


 / Published in: CSS
 

Makes the form field background yellow and the border red when it is the active field. Works in most browsers except the usual lame ones (IE5.5 & 6).

  1. textarea:focus, input:focus {
  2. border: 1px solid #900;
  3. background-color: #FFFF9D;
  4. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: asturi on December 9, 2008

does not work in IE

You need to login to post a comment.