Have you ever wondered how websites change the color of their input fields when you click on them? Here is an easy to use method you can implement in less than Five Minutes!
All you need to do is add the following code to your style sheet and change the colors to match your what ever you what.
That’s it!
input:focus, textarea:focus, select:focus {
border: 1px solid #666;
background:#ff9;
color:black;
}
That’s fantastic! I just implemented it on my company’s website: http://www.rolloffcomplete.com. A simple copy&paste;into the css file.
Cool for its being simple;))
Thank you.
Max Kiesler is an award-winning strategic designer and co-founder
and principal of Ideacodes.com, a web consultancy in San Francisco focused on next generation websites. About Max...
Blog Comments