Hi Guys,
I am trying to implement the masonry plugin on my blog www.Iamvishal.com but I can't seem to get it working.

Below is my code. Any clues as to what I am doing wrong ?

$(window).load(function () {

$('#content').masonry({columnWidth: 185});

});

Cheers,
vishal

Recommended Answers

Vishalkhialani,

I wonder if it's because the images are wider than the column width?

Try experimenting by setting all the images to 185px or less.

Airshow

Jump to Post

All 2 Replies

Vishalkhialani,

I wonder if it's because the images are wider than the column width?

Try experimenting by setting all the images to 185px or less.

Airshow

Hi,
It was a conflict issue I cannot use $(window) instead I had to use jQuery(document)

Its working now.

Cheers,
vishal

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.