So I am building a bootstrap grid of images. I thought it would be nice to have different sized images to make it look more interesting. The wider images are twice as wide as normal, and the taller images are twice as tall as normal, this it to avoid empty space inside the grid.
This is what I currently have:
I want the bottom row to occupy the empty space above it, but I can't figure out how to do it without manually positioning it, which would be a nightmare to make lineup on all devices.
Here is a codepen as well with my code. And the pug(jade):
html
head
title Grid Test
link(href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css", rel="stylesheet", integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u", crossorigin="anonymous")
link(rel="stylesheet" href="css/style.css" type="text/css")
body
div.container-fluid
div.row
div.col-xl-6.col-md-6.col-sm-12.col-xs-12.no-gutter
div.imgContain
img.responsive(src="http://placehold.it/600x250/ff0000")
div.col-xl-3.col-md-3.col-sm-6.col-xs-6.no-gutter
div.imgContain
img.responsive(src="http://placehold.it/300x250/00ff00")
div.col-xl-3.col-md-3.col-sm-6.col-xs-6.no-gutter
div.imgContain
img.responsive(src="http://placehold.it/300x250/0000ff")
div.row
div.col-xl-3.col-md-3.col-sm-6.col-xs-6.no-gutter
div.imgContain
img.responsive(src="http://placehold.it/300x250/0000ff")
div.col-xl-3.col-md-3.col-sm-6.col-xs-6.no-gutter
div.imgContain
img.responsive(src="http://placehold.it/300x250/00ff00")
div.col-xl-3.col-md-3.col-sm-6.col-xs-6.no-gutter
div.imgContain
img.responsive(src="http://placehold.it/300x250/ff0000")
div.col-xl-3.col-md-3.col-sm-6.col-xs-6.no-gutter
div.imgContain
img.responsive(src="http://placehold.it/300x500/00ff00")
div.row
div.col-xl-3.col-md-3.col-sm-6.col-xs-6.no-gutter
div.imgContain
img.responsive(src="http://placehold.it/300x250/ff0000")
div.col-xl-6.col-md-6.col-sm-12.col-xs-12.no-gutter
div.imgContain
img.responsive(src="http://placehold.it/600x250/0000ff")
Any help would be great! Cheers