<a> with an inner <span> not triggering :active state in IE
Posted
by Adam Singer
on Stack Overflow
See other posts from Stack Overflow
or by Adam Singer
Published on 2010-05-04T22:32:31Z
Indexed on
2010/05/04
22:38 UTC
Read the original article
Hit count: 196
I want to style the :active state of a button that is represented by an . The tag has an inner (beacuse I want to add an icon to this button). I notice the :active state is triggered properly in everything but Internet Explorer. In IE, it appears that the area around the (the 's padding) triggers that :active state, but when clicking directly on the text within the , the :active state is not triggered. Is there a way to fix this without resorting to Javascript?
© Stack Overflow or respective owner