I want to change the CSS of an <input type="text"> when the text box is selected; i.e. when the user clicks on the text box, I want different CSS rules to apply. Is there any way to do this using pure CSS?
I want to change the CSS of an <input type=text> when the text box
Share
Have you tried the focus pseudo-class
more info: http://reference.sitepoint.com/css/pseudoclass-focus