I've built a minimal example for the following problem: If I link an image, there is a small padding at its bottom although the padding of the link and image element is set to zero. I've applied a green background color to make the padding visible. So, where does the padding come from? I tested it with Safari 11 and Firefox 58.
Thank you in advance!
#link {
padding: 0;
margin: 0;
background-color: green;
}
#image {
padding: 0;
margin: 0;
}
<a id="link" href="index.html"><img id="image" src="https://lorempixel.com/50/50/" ></a>
<img id="image" src="https://lorempixel.com/50/50/">
result: browser result