Highlight Text Input Fields

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

This CSS trick lets you highlight the input field currently in focus. This trick does not work in IE though.

Copy this code and paste it in your HTML
  1. input[type=text]:focus, input[type=password]:focus{
  2. border:2px solid #000;
  3. }

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.