Stream

Max Kiesler's entrance page and activity stream from all my blogs

Blog Archives

All of the posts from Max's main blog

DesignDemo

Demos of web interface and interaction design

Vizlist

View all of our media

mHub

Ajax, rails and other coding examples & how-to's

Labs

My personal work, or work in progress

About

Learn more about Max

News

Stay up to date with Max

Blog Comments

Simple CSS Imput Field Color Changer

feed icon Subscribe

Friday, August 19, 2005

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;
}



Comments on this post


Harry Maugans  on  05/28  at  08:24 PM

That’s fantastic! I just implemented it on my company’s website:  http://www.rolloffcomplete.com.  A simple copy&paste;into the css file.  smile


Lem  on  06/02  at  12:15 AM

Cool for its being simple;))
Thank you.


Post a comment

Stuff

Subscribe

  in a reader
  by email

    

About

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