I am facing a situation where I have an anchor element with a child element (img) that is larger than the anchor element itself. My goal is to restrict the 'clickable' area of the anchor links only to the anchor element.
<div>
<a href="">
<img src="somewhere/images/this.svg" />
</a>
</div>
For a visual representation and code example, you can check out this codepen showing the clickable area extending beyond the anchor element.
If possible, I would prefer not to separate these elements into sibling elements.