IE and CSS :focus

Aug 16

CSS gives us (the web designer) the ability to add a pseudo class called :hover and :focus, however Internet Explorer does not support such functionality, and therefore you cannot tell if an anchor tag is legitamately chosen.
shows us how we can get around this, using a .htc file ( we can add the functionality to our web site. It is not ideal and if you have a large stylesheet it wont work at all.

So what does it do? the .htc file reads all your external stylesheets and replaces any instance of :focus / :hover with a JavaScript alternative.

Don't take my word for it, give it ago, and try to extend the functionality too.

Filed under:
Web design
Posted by:
James Griffin
August 16, 2005