sakura icon indicating copy to clipboard operation
sakura copied to clipboard

Unexpected underline for image link when hovering

Open ReinforceZwei opened this issue 1 year ago • 0 comments

Example html code to reproduce the problem:

<p>
    <a href="https://github.com">
	<img src="https://img.shields.io/badge/GitHub-100000?style=for-the-badge&amp;logo=github&amp;logoColor=white" alt="">
    </a>
</p>

img-hovering

I think the problem is margin-bottom. image

The problem could be resolved by removing the margin-bottom style, or reset the margin-bottom style if the <img> tag is used inside a <a> tag.

ReinforceZwei avatar Mar 14 '23 12:03 ReinforceZwei