I have a very strange problem in here: [Referral Link Removed]. The first row product items overlapped with the items in the second row.
The masonry items are below the homepage above the footer. As you can see, it looks different with Chrome. In firefox, it looks good.
Here's how it looks in my chrome: http://clip2net.com/s/5LIRko
My jQuery Code is:
jQuery(function($){
var $container = $('.woocommerce ul.products');
$container.masonry({
columnWidth:10,
gutterWidth: 15,
itemSelector: '.product-category'
});
});
Is there any css rule which affects the row output ?
The problem is your images. By the time masonry is called, your images haven't loaded. So it's assuming the height of your elements WITHOUT the height of the image being factored in.
If you refresh your screen after the images are already cached, you'll see that it loads correctly. If you then clear cache and refresh, you'll see they overlap again.
Four Five options:
jQuery(function($){
use jQuery(window).on('load', function(){ var $ = jQuery;
and you'll see the results.