Skip to content Skip to sidebar Skip to footer

Magento Sort Product List With Isotope Or Masonry

I want to sort my products in the list.phtml, I want to have one big product in the right, I want to be like in this image. My HTML code is like this:
    Copy

    CSS

    #container {
        width: 100%;
        max-width: 700px;
        margin:0px;
        padding:0px;
        margin: 2em auto;
    }
    .cols {
        -moz-column-count:3;
        -moz-column-gap: 3%;
        -moz-column-width: 30%;
        -webkit-column-count:3;
        -webkit-column-gap: 3%;
        -webkit-column-width: 30%;
        column-count: 3;
        column-gap: 3%;
        column-width: 30%;
    }
    .box {
        margin:0px;
        padding:0px;
        list-style:none;
        margin-bottom: 20px;
    }
    .box.one {
        height: 200px;
        background-color: #d77575;
    }
    .box.two {
        height: 300px;
        background-color: #dcbc4c;
    }
    .box.three {
        background-color: #a3ca3b;
        height: 400px;
    }
    .box.four {
        background-color: #3daee3;
        height: 500px;
    }
    .box.five {
        background-color: #bb8ed8;
        height: 600px;
    }
    .box.six {
        background-color: #baafb1;
        height: 200px;
    }
    

Post a Comment for "Magento Sort Product List With Isotope Or Masonry"