Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <header>
	<h1><span>46</span> flex layouts</h1>
	<p>
		<svg width="24" height="24" viewBox="0 0 24 24">
			<path d="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"></path>
		</svg>
		<span>One</span> markup
		<svg width="24" height="24" viewBox="0 0 24 24">
			<path d="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"></path>
		</svg>
	</p>
	<small>Inspired by: <a href="https://tobiasahlin.com/blog/masonry-with-css/" target="_blank">CSS masonry with flexbox, :nth-child(), and order</a></small>
	<hr />
	<label>
		zoom:
		<input type="range" min="0.1" max="1" value="0.3" step="0.1"/>
	</label>
</header>
<main>
	<div class="layout v-01">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	


	<div class="layout v-02">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		


	<div class="layout v-03">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		


	<div class="layout v-04">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		


	<div class="layout v-05">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		

	<div class="layout v-06">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		


	<div class="layout v-07">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		


	<div class="layout v-08">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		


	<div class="layout v-09">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		



	<div class="layout v-10">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		


	<div class="layout v-11">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>			

	<div class="layout v-12">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		

	<div class="layout v-13">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		


	<div class="layout v-14">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		

	<div class="layout v-15">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		

	<div class="layout v-16">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	


	<div class="layout v-17">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	


	<div class="layout v-18">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	



	<div class="layout v-19">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	



	<div class="layout v-20">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	

	<div class="layout v-21">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	


	<div class="layout v-22">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	


	<div class="layout v-23">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	

	<div class="layout v-24">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		

	<div class="layout v-25">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		

	<div class="layout v-26">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>			


	<div class="layout v-27">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		

	<div class="layout v-28">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	


	<div class="layout v-29">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		

	<div class="layout v-30">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	



	<div class="layout v-31">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	



	<div class="layout v-32">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		

	<div class="layout v-33">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	


	<div class="layout v-34">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	

	<div class="layout v-35">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	


	<div class="layout v-36">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	


	<div class="layout v-37">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	



	<div class="layout v-38">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	



	<div class="layout v-39">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	

	<div class="layout v-40">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	

	<div class="layout v-41">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	

	<div class="layout v-42">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		

	<div class="layout v-43">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	


	<div class="layout v-44">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	


	<div class="layout v-45">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>	

	<div class="layout v-46">
		<div class="content">
			<article class="a">
				<div class="wallpaper">
					<img src="//unsplash.it/960/640" />
				</div>
			</article>
			<article class="b">
				<h2>Lorem ipsum dolor sit amet</h2>
			</article>

			<article class="c">
				<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quaerat quas laudantium saepe odit architecto minima recusandae nisi facilis doloribus odio totam, ipsam consequatur itaque quisquam reprehenderit eos ducimus explicabo illum!</p>
			</article>		
		</div>
	</div>		
</main>	
              
            
!

CSS

              
                //	A value just large enough to prevent stuff 
//	like collapsing margins, pixel gaps, flex  
//	collapse etc.... yet not visible  	
$seamless: 0.0033rem;

//
$color-blue:  skyblue;
$color-light: whitesmoke;
$color-dark:  darkslategray;







.layout {
	display: flex;
}
.content {
	display: flex;
	flex-flow: column wrap;	
	align-content: space-between;	

	> * {
		flex-shrink: 1; 
		flex-grow: 1; 
		min-height: $seamless;
	}

	//	force new column 
	&:before,
	&:after {
		content: '';
		flex-basis: 100%;
		width: 0;
		order: 2;
	} 	

	//	only need for 3 columns
	&:after { display: none; }
}
.a { background: $color-dark; padding:1rem;  }
.b { background: $color-light; padding:1rem;  }
.c { background: $color-blue; padding:1rem; }





//	3 columns
.v-01 {
	.content:after { display: block; }
	.a { order:1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order:2; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order:3; width: calc(100% / 3 * 1 + #{$seamless}); }	
}
.v-02 {
	.content:after { display: block; }
	.a { order:1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order:3; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order:2; width: calc(100% / 3 * 1 + #{$seamless}); }	
}

.v-03 {
	.content:after { display: block; }
	.a { order:2; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order:1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order:3; width: calc(100% / 3 * 1 + #{$seamless}); }	
}
.v-04 {
	.content:after { display: block; }
	.a { order:2; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order:3; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order:1; width: calc(100% / 3 * 1 + #{$seamless}); }	
}

.v-05 {
	.content:after { display: block; }
	.a { order:3; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order:1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order:2; width: calc(100% / 3 * 1 + #{$seamless}); }	
}
.v-06 {
	.content:after { display: block; }
	.a { order:3; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order:2; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order:1; width: calc(100% / 3 * 1 + #{$seamless}); }	
}


//	image large
.v-07 {
	.a { order:1; width: calc(100% / 3 * 2 + #{$seamless}); }
	.b { order:2; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order:2; width: calc(100% / 3 * 1 + #{$seamless}); }	
}
.v-08 {
	.a { order:1; width: calc(100% / 3 * 2 + #{$seamless}); }
	.b { order:3; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order:2; width: calc(100% / 3 * 1 + #{$seamless}); }	
}

.v-09 {
	.a { order:2; width: calc(100% / 3 * 2 + #{$seamless}); }
	.b { order:1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order:1; width: calc(100% / 3 * 1 + #{$seamless}); }	
}
.v-10 {
	.a { order: 2; width: calc(100% / 3 * 2 + #{$seamless}); }
	.b { order: 1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order:-1; width: calc(100% / 3 * 1 + #{$seamless}); }	
}


//	image small
.v-11 {
	.a { order: 1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order: 2; width: calc(100% / 3 * 2 + #{$seamless}); }
	.c { order: 2; width: calc(100% / 3 * 2 + #{$seamless}); }	
}
.v-12 {
	.a { order: 1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order: 3; width: calc(100% / 3 * 2 + #{$seamless}); }
	.c { order: 2; width: calc(100% / 3 * 2 + #{$seamless}); }	
}

.v-13 {
	.a { order: 2; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order: 1; width: calc(100% / 3 * 2 + #{$seamless}); }
	.c { order: 1; width: calc(100% / 3 * 2 + #{$seamless}); }	
}
.v-14 {
	.a { order:  2; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order:  1; width: calc(100% / 3 * 2 + #{$seamless}); }
	.c { order: -1; width: calc(100% / 3 * 2 + #{$seamless}); }	
}


//	header large
.v-15 {
	.a { order: 2; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order: 1; width: calc(100% / 3 * 2 + #{$seamless}); }
	.c { order: 2; width: calc(100% / 3 * 1 + #{$seamless}); }	
}
.v-16 {
	.a { order: 3; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order: 1; width: calc(100% / 3 * 2 + #{$seamless}); }
	.c { order: 2; width: calc(100% / 3 * 1 + #{$seamless}); }	
}

.v-17 {
	.a { order: 1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order: 2; width: calc(100% / 3 * 2 + #{$seamless}); }
	.c { order: 1; width: calc(100% / 3 * 1 + #{$seamless}); }	
}
.v-18 {
	.a { order:  1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order:  2; width: calc(100% / 3 * 2 + #{$seamless}); }
	.c { order: -1; width: calc(100% / 3 * 1 + #{$seamless}); }	
}


//	small header 
.v-19 {
	.a { order: 2; width: calc(100% / 3 * 2 + #{$seamless}); }
	.b { order: 1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order: 2; width: calc(100% / 3 * 2 + #{$seamless}); }	
}
.v-20 {
	.a { order: 3; width: calc(100% / 3 * 2 + #{$seamless}); }
	.b { order: 1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order: 2; width: calc(100% / 3 * 2 + #{$seamless}); }	
}


.v-21 {
	.a { order: 1; width: calc(100% / 3 * 2 + #{$seamless}); }
	.b { order: 2; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order: 1; width: calc(100% / 3 * 2 + #{$seamless}); }	
}
.v-22 {
	.a { order:  1; width: calc(100% / 3 * 2 + #{$seamless}); }
	.b { order:  2; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order: -1; width: calc(100% / 3 * 2 + #{$seamless}); }	
}


//	text large
.v-23 {
	.a { order: 2; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order: 2; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order: 1; width: calc(100% / 3 * 2 + #{$seamless}); }	
}
.v-24 {
	.a { order: 3; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order: 2; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order: 1; width: calc(100% / 3 * 2 + #{$seamless}); }	
}


.v-25 {
	.a { order: 1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order: 1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order: 2; width: calc(100% / 3 * 2 + #{$seamless}); }	
}
.v-26 {
	.a { order:  1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.b { order: -1; width: calc(100% / 3 * 1 + #{$seamless}); }
	.c { order:  2; width: calc(100% / 3 * 2 + #{$seamless}); }	
}

//	text small
.v-27 {
	.a { order: 2; width: calc(100% / 3 * 2 + #{$seamless}); }
	.b { order: 2; width: calc(100% / 3 * 2 + #{$seamless}); }
	.c { order: 1; width: calc(100% / 3 * 1 + #{$seamless}); }	
}
.v-28 {
	.a { order: 3; width: calc(100% / 3 * 2 + #{$seamless}); }
	.b { order: 2; width: calc(100% / 3 * 2 + #{$seamless}); }
	.c { order: 1; width: calc(100% / 3 * 1 + #{$seamless}); }	
}


.v-29 {
	.a { order: 1; width: calc(100% / 3 * 2 + #{$seamless}); }
	.b { order: 1; width: calc(100% / 3 * 2 + #{$seamless}); }
	.c { order: 2; width: calc(100% / 3 * 1 + #{$seamless}); }	
}
.v-30 {
	.a { order:  1; width: calc(100% / 3 * 2 + #{$seamless}); }
	.b { order: -1; width: calc(100% / 3 * 2 + #{$seamless}); }
	.c { order:  2; width: calc(100% / 3 * 1 + #{$seamless}); }	
}


//	row layouts
.v-31 {
	.content { flex-flow: row wrap; }
	.a { order:  1; width: 100%;  }
	.b { order:  2; width: 100%; }
	.c { order:  3; width: 100%; }	
}

.v-32 {
	.content { flex-flow: row wrap; }
	.a { order:  1; width: 100%; }
	.b { order:  3; width: 100%; }
	.c { order:  2; width: 100%; }	
}

.v-33 {
	.content { flex-flow: row wrap; }
	.a { order:  2; width: 100%; }
	.b { order:  1; width: 100%; }
	.c { order:  3; width: 100%; }	
}
.v-34 {
	.content { flex-flow: row wrap; }
	.a { order:  3; width: 100%;  }
	.b { order:  1; width: 100%; }
	.c { order:  2; width: 100%; }	
}

.v-35 {
	.content { flex-flow: row wrap; }
	.a { order:  2; width: 100%;  }
	.b { order:  3; width: 100%; }
	.c { order:  1; width: 100%; }	
}
.v-36 {
	.content { flex-flow: row wrap; }
	.a { order:  3; width: 100%;  }
	.b { order:  2; width: 100%; }
	.c { order:  1; width: 100%; }	
}


//	full image - top
.v-37 {
	.content { flex-flow: row wrap; }
	.a { order:  1; width: 100%;  }
	.b { order:  2; width: 50%; }
	.c { order:  3; width: 50%; }	
}
.v-38 {
	.content { flex-flow: row wrap; }
	.a { order:  1; width: 100%; }
	.b { order:  3; width: 50%; }
	.c { order:  2; width: 50%; }	
}


//	full header - top
.v-39 {
	.content { flex-flow: row wrap; }
	.a { order:  2; width: 50%;}
	.b { order:  1; width: 100%; }
	.c { order:  3; width: 50%; }	
}
.v-40 {
	.content { flex-flow: row wrap; }
	.a { order:  3; width: 50%; }
	.b { order:  1; width: 100%; }
	.c { order:  2; width: 50%; }	
}


//	full text - top
.v-39 {
	.content { flex-flow: row wrap; }
	.a { order:  2; width: 50%;}
	.b { order:  3; width: 50%; }
	.c { order:  1; width: 100%; }	
}
.v-40 {
	.content { flex-flow: row wrap; }
	.a { order:  3; width: 50%; }
	.b { order:  2; width: 50%; }
	.c { order:  1; width: 100%; }	
}




//	full image - bottom
.v-41 {
	.content { flex-flow: row wrap-reverse;}
	.a { order:  1; width: 100%;  }
	.b { order:  2; width: 50%; }
	.c { order:  3; width: 50%; }		
}
.v-42 {
	.content { flex-flow: row wrap-reverse; }
	.a { order:  1; width: 100%; }
	.b { order:  3; width: 50%; }
	.c { order:  2; width: 50%; }	
}


//	full header - bottom
.v-43 {
	.content { flex-flow: row wrap-reverse; }
	.a { order:  2; width: 50%;}
	.b { order:  1; width: 100%; }
	.c { order:  3; width: 50%; }	
}
.v-44 {
	.content { flex-flow: row wrap-reverse; }
	.a { order:  3; width: 50%; }
	.b { order:  1; width: 100%; }
	.c { order:  2; width: 50%; }	
}


//	full text - bottom
.v-45 {
	.content { flex-flow: row wrap-reverse; }
	.a { order:  2; width: 50%;}
	.b { order:  3; width: 50%; }
	.c { order:  1; width: 100%; }	
}
.v-46 {
	.content { flex-flow: row wrap-reverse; }
	.a { order:  3; width: 50%; }
	.b { order:  2; width: 50%; }
	.c { order:  1; width: 100%; }	
}





//
//	just some page styling 
//
@import url("https://fonts.googleapis.com/css?family=Merriweather:400,400i,700");
html { box-sizing: border-box; } *,*::before, *::after { box-sizing: inherit; position: relative; }
body { margin: 0; 	font-family: Merriweather; }
p  { font: 1rem/1.5 sans-serif; }
h2 { font: 2rem/1.5 Merriweather; }
header {
	color: $color-dark; 
	margin: 0 auto;
	max-width: 960px; 
	padding: 2rem; 
	margin-bottom: 1rem;	
	text-align: center;
	h1 span { background: $color-blue; padding: 0.5rem; }
	p { font: 1.2rem/1.3 Merriweather; color: $color-blue; font-weight: 700; margin: 2rem; }
	p span { text-transform: uppercase; text-decoration: underline; }
	hr { border:0; border-top: 1px solid $color-light; margin: 2rem; }
	svg { fill: $color-blue; vertical-align: bottom; margin: 0 0.5rem;  }
}
main {
	margin: 0 auto;
	max-width: 960px; 
	transform: scale(0.3);
	transform-origin: top center;
}
a { color: $color-blue; }
a:not(:hover){
	text-decoration: none;
}

.layout {
	margin-bottom: 5rem;
	&:before {
		content: attr(class);
		position: absolute;
		transform: translateY(-2rem);
		color: $color-blue; 
	}
	outline: 1px solid $color-dark;
}
.a, .b, .c { min-height: 120px; }
.wallpaper {
	&, & > * {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}
	img {
		object-fit: cover;
		object-position: center;
		background-size: cover;
		background-position: center;		
	}
}


@media (max-width: 680px){
	h2 { font-size: 90%; }
	p { font-size: 60%; }
	main { transform: scale(0.9) !important; }
	label { display: none; }
}



              
            
!

JS

              
                const main = document.querySelector('main');
const input = document.querySelector('input');
input.addEventListener('input',  e=>{
	main.style.transform = `scale(${input.value})`;
})



//  is object fit supported
if (document.body.style.objectFit === undefined) {

	//  loop through all images    
	[].slice
		.call(document.querySelectorAll('img'))
		.map(img => {

		//  image has background-size cover or contain        
		if(['cover', 'contain']
		   .indexOf(getComputedStyle(img).backgroundSize) !== -1) {

			//  use src as background image            
			img.style.backgroundImage = `url(${img.src})`;

			//  replace src with transparent gif
			img.src = 'data:;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
		}
	});
}
              
            
!
999px

Console