jquery-plugin Masonry: I cannot make it work
        Posted  
        
            by Patrick
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Patrick
        
        
        
        Published on 2010-05-17T07:23:43Z
        Indexed on 
            2010/05/17
            8:00 UTC
        
        
        Read the original article
        Hit count: 240
        
jQuery
|jquery-plugins
hi,
I'm using Masonry library (http://desandro.com/resources/jquery-masonry/) to create columns from my content.
I cannot make it work.. this is the url with the html code: http://donatellabernardi.ch/drupal/
And this is my javascript line:
$('#content-area').masonry({ columnWidth: 50, itemSelector:'.views-row'});
The Masonry function is invoked, but it doesn't add any column...
I've also tried:
$('#content-area').masonry({ columnWidth: 50, itemSelector:'.node'});
$('#content-area').masonry({ columnWidth: 50 });
$('div.view-content').masonry({ columnWidth: 50 });
What am I doing wrong ? Thanks
© Stack Overflow or respective owner