Posted By

michellebracken on 08/18/11


Tagged


Versions (?)

Style the Element that has Focus in a Form


 / Published in: CSS
 

A nice usability tip is to let people filling out a form know which input currently has focus. You can do this easily using the :focus pseudo-selector This way your users will know exactly which field is ready for input

  1. 1 input:focus { border: 2px solid green; }

Report this snippet  

You need to login to post a comment.