Is there a way to add a frame to an image without causing it to shrink due to borders?
Below is the code I have tried using:
.img-border {
height: 100%;
width: 100%;
position: absolute;
z-index: 1;
}
<div class="border border-black img-border">
</div>
<img class="img-fluid shadow bg-white" src="https://mir-s3-cdn-cf.behance.net/project_modules/disp/a3efe622972119.5631b3f61e688.gif">
However, this solution doesn't seem quite right to me.