Created
November 10, 2012 05:59
-
-
Save ackintosh/4050100 to your computer and use it in GitHub Desktop.
Using the jQuery Masonry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="masonry"> | |
<article class="masonry-brick"> | |
... | |
</article> | |
<article class="masonry-brick"> | |
... | |
</article> | |
<article class="masonry-brick"> | |
... | |
</article> | |
</div> | |
<script src="/javascripts/jquery.masonry.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(function() { | |
$('.masonry').masonry({ | |
itemSelector: '.masonry-brick' | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment