M
M
Max Zhukov2017-09-02 16:44:19
css
Max Zhukov, 2017-09-02 16:44:19

2 masonry grid in safari overlaid on 1?

2 masonry grid in safari overlaps the first one, how to fix?

var $grid = $('.grid');
        $grid.imagesLoaded(function() {
            $grid.masonry({
                columnWidth: '.product',
                itemSelector: '.product-one-column,.product-two-column',
                gutter: 7
            });
        });
        var $grid_popular = $('.grid-popular');
        $grid_popular.imagesLoaded(function() {
            $grid_popular.masonry({
                columnWidth: '.product',
                itemSelector: '.product-one-column,.product-two-column',
                gutter: 7,
                percentPosition: true
            });
        });

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question