twitter bootstrap - How to align images in a mosaic style? html/css -


i include mosaic style set of images group via html5/css. using bootstrap , various rows, columns , div's structure , position content - unable group images together. have been able align them extent still mismatched etc. please see attached image trying achieve.

any ideas please?

enter image description here

use masonary.js

http://masonry.desandro.com/

or code own js function. resource can found here (an answer fellow started madness, front-end dev pinterest): http://www.quora.com/pinterest/what-technology-is-used-to-generate-pinterest-coms-absolute-div-stacking-layout

currently, can css, using css3 column. take @ example here (although not solve layout exactly):

http://jsfiddle.net/jalbertbowdenii/7chkz/

    -moz-column-count:3;     -moz-column-gap: 3%;     -moz-column-width: 30%;     -webkit-column-count:3;     -webkit-column-gap: 3%;     -webkit-column-width: 30%;     column-count: 3;     column-gap: 3%;     column-width: 30%; 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -