input:focus for Internet Explorer

The :focus class can be used to apply styles to a page element that receives focus. So, for example, if you wanted the background color of input boxes to change when they are in use by the user, you can simply do:
input:focus { background: orange; }

But this does not work for IR and hence

select:focus, textarea:focus, input.sffocus {

border: 1px solid #b2d1ff;  background-color: yellow; color: blue;

}

Ref: http://www.htmldog.com/articles/suckerfish/focus/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s