<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="col-md-6">
<img src="http://lorempixel.com/520/329/nature">
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
</div>
<div class="col-md-6">
<img src="http://lorempixel.com/530/290/nature">
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
</div>
</div> </div>
</div>
<div class="container">
<div class="row">
<div class="col-md-3">
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
</div>
<div class="col-md-3">
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
</div>
<div class="col-md-3">
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
</div>
<div class="col-md-3">
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
<h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2>
</div>
</div>
<div id="container"></div>
<div id="images">
<div class="item">
<img src="http://lorempixel.com/425/299/nature">
</div>
<div class="item">
<img src="http://lorempixel.com/190/292/nature">
</div>
<div class="item">
<img src="http://lorempixel.com/520/329/nature">
</div>
<div class="item">
<img src="http://lorempixel.com/404/176/nature">
</div>
<div class="item">
<img src="http://lorempixel.com/530/290/nature">
</div>
<div class="item">
<img src="http://lorempixel.com/228/200/nature">
</div>
<div class="item">
<img src="http://lorempixel.com/207/316/nature">
</div>
<div class="item">
<img src="http://lorempixel.com/435/162/nature">
</div>
<div class="item">
<img src="http://lorempixel.com/376/175/nature">
</div>
<div class="item">
<img src="http://lorempixel.com/508/338/nature">
</div>
<div class="item">
<img src="http://lorempixel.com/404/389/nature">
</div>
<div class="item">
<img src="http://lorempixel.com/216/304/nature">
</div>
</div>
<p>
<button id="load-images">Load images</button>
<script src="//masonry.desandro.com/masonry.pkgd.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/3.0.4/jquery.imagesloaded.js"></script>
</div>
</div>