I’m trying to create a href button with a small icon and two lines of text vertically centered. It works fine in Chrome and Firefox, but of course IE has to be the problem child that it usually is.
When I apply display:inline-block and vertical-align:middle to the img and span within the anchor, everything looks fine in IE/Chrome/Firefox. However, in IE11, the :active attribute stops working. When I remove those two properties, the :active attribute works again.
Interesting - it appears to actually be working but you can’t be clicking on the image or the span.
Removing those two properties has no effect technically. You just happen to change up the target space so to you it APPEARS t obe working for you. It does not solve your problem.
To show what I mean, try clicking the edge of the blue box (anywhere) and you should see it work no matter what solution you mentioned.
I’ll keep at this - this is very interesting. Hope I can get a solution before I leave work.
IE9 needs the fake gif (an old ie6 trick) but IE11 doesn’t. The image doesn’t need to exist but you can use a 1px transparent gif to avoid missing images in your server logs.