I am trying to make a grid of images in CSS, out of random sized images that are not square. Does anyone have a solution to filling all the space inside a fixed sized div with the image ?
See my example (blue is a fixed size div and red in the image inside it:
Best How To :
You can use the css, background-size: cover;
<div class="img-cover img1">
<div class="img-cover img2">
<div class="img-cover img3">