When it comes to rounding the corners of images in CSS using border-radius, I encounter an issue. I have a border around some images with 5px of padding between the image and border. Using border-radius rounds the border, but not the image inside it. Is there a way to round the image itself?
.image-link {
border: #2EC4B6 solid 3px;
padding: 5px;
box-sizing: border-box;
border-radius: 5px;
}
<div class="col-sm-8 col-md-3 order-2 order-md-1 dish-image">
<a class="outer-link" href="../maindishes/butternut-chili.html">
<img class="img-fluid image-link" src="../maindishes/images/butternut-chili.jpg"
alt="picture of dish">
</a>
</div>
https://i.sstatic.net/eQ7zU.jpg <--This is what it looks like if I only wrap the anchor tag.