I'm having an issue with my Bootstrap 4 card markup where the image is wrapped inside an anchor tag. The problem arises when viewing it in IE 11, as there is a large white space underneath the image, while everything displays fine in Chrome, Edge, and Firefox.
<div class="card" style="width: 18rem;">
<a href="#">
<img class="card-img-top" src="/images/myimage.jpg" >
</a>
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
Interestingly, when I remove the anchor tags around the image, the white space disappears. Any suggestions on how to fix this issue?