<a> tag is not at the same size of <img> tag inside it
If the inline-block
declaration is not enough, check the line-height
…
<a href="" style="line-height: 1;">
<img src="logo.jpg" alt="logo">
</a>
Try adding display:inline-block
to the <a>
element.
What worked for me was adding a z-index
to the anchor tag.
position: absolute;
z-index: 2