"Masonry Grid"
Bootstrap 3.2.0 Snippet by locvfx

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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 ----------> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/masonry/3.1.5/masonry.pkgd.min.js"></script> <div class="container"> <h2>Masonry Grid</h2> <div class="row grid"> <div class="col-xs-4 thumbnail"> <img src="http://shobase.de/api/thumb.php?p=2013/IMG_2.jpg" /> </div> <div class="col-xs-4 thumbnail"> <img src="http://shobase.de/api/thumb.php?p=2013/IMG.jpg" /> </div> <div class="col-xs-4 thumbnail"> <img src="http://shobase.de/api/thumb.php?p=2013/satc_collage/IMG_0030-basis.jpg" /> </div> <div class="col-xs-4 thumbnail"> <img src="http://shobase.de/api/thumb.php?p=2013/sommer13/_DSC9400.jpg" /> </div> <div class="col-xs-4 thumbnail"> <img src="http://shobase.de/api/thumb.php?p=2013/siehste/_DSC9307.jpg" /> </div> <div class="col-xs-4 thumbnail"> <img src="http://shobase.de/api/thumb.php?p=2013/kameraunterwegs/IMG_0011.jpg" /> </div> <div class="col-xs-4 thumbnail"> <img src="http://shobase.de/api/thumb.php?p=2013/Untitled-1.jpg" /> </div> <div class="col-xs-4 thumbnail"> <img src="http://shobase.de/api/thumb.php?p=blog2012/sacity/speedhaus.jpg" /> </div> </div> </div>
.thumbnail img { width: 100%; }
$(function(){ var m = new Masonry($('.grid').get()[0], { itemSelector: ".thumbnail" }); });

Related: See More


Questions / Comments: