:focus in IE not working

Posted by o-logn on Stack Overflow See other posts from Stack Overflow or by o-logn
Published on 2010-04-01T01:04:57Z Indexed on 2010/04/01 1:13 UTC
Read the original article Hit count: 390

Hey,

I've created a site with CSS that requires the :focus pseudo class. I change the 'filter' and 'background-image' effects when a textbox is selected (i.e. has focus). This works in Chrome/FF, but doesn't seem to work in IE8 (and, presumable, previous versions if IE). I tried to look for answers, and have tried to use :active - but that doesn't work. Is there a way of changing attributes such as 'filter' using psuedo-classes? Failing that, can I do it in JS with the OnClick event?

Thanks

© Stack Overflow or respective owner

Related posts about internet-explorer

Related posts about focus