Highlight active form fields


/ Published in: CSS
Save to your folder(s)

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).


Copy this code and paste it in your HTML
  1. textarea:focus, input:focus {
  2. border: 1px solid #900;
  3. background-color: #FFFF9D;
  4. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.