Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #295579

    Hi Kriesi,

    I am having trouble changing the masonry columns in a boxed layout view.

    If I use Masonry it normally spans the full width of the browser and has multiple columns. If I use masonry within a full-width content element on page without a sidebar it comes up with only 2 large columns.I would like to be able to split this into 4 columns as per my site theme. Currently there is no option for how many columns.

    #295859

    Hi.
    I encountered the same issue I couldn’t solve. When placing ‘masonry portfolio’ into ‘color section’ I can only have 2 large columns, but I would like to have at least 3 columns of adequate size with large white gaps (not grey! as they are currently are). I want to use masonry portfolio as navigation menu and two oversized images are pretty much behind what I would call clean and readable display.

    Thank you in advance

    #296277

    So I found somewhat of a fix. It isn’t perfect, but looks good for 4 column:

    #top .container .av-masonry-entry {
        width: 24.8%;
       }
    .av-masonry-image-container {
        background-position: center top;
        background-repeat: no-repeat;
        background-size: cover;
        text-align: center;
    }
    .av-fixed-size .av-masonry-entry .av-inner-masonry-sizer {
        padding-bottom: 80%;
        width: 100%;
        z-index: 1;
        height:420px;
    }
    .av-masonry-image-container {
        background-position: center top;
        background-repeat: no-repeat;
        background-size: cover;
        max-height: 275px;
        text-align: center;
    }
    

    Maybe you can suggest a better way to do this Kriesi? For instance, this doesn’t collapse into mobile very good at all!

    #296883

    Hey!

    Please add media queries to your code as following to apply it only on screens bigger than 990px

    @media only screen and (min-width: 990px) {
    #top .container .av-masonry-entry {
        width: 24.8%;
       }
    .av-masonry-image-container {
        background-position: center top;
        background-repeat: no-repeat;
        background-size: cover;
        text-align: center;
    }
    .av-fixed-size .av-masonry-entry .av-inner-masonry-sizer {
        padding-bottom: 80%;
        width: 100%;
        z-index: 1;
        height:420px;
    }
    .av-masonry-image-container {
        background-position: center top;
        background-repeat: no-repeat;
        background-size: cover;
        max-height: 275px;
        text-align: center;
    }}

    Cheers!
    Yigit

    #297088

    Wow. Well now, this is simply genius. Dear Yigit, I’m in love you code :)

    #297193

    Hey!


    @hexquare
    glad it worked for you Alex! :) We will keep the thread open for OP

    Best regards,
    Yigit

    #298969

    Works great! forgot that if it collapsed back to the original it would be fine!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘masonry columns in boxed view’ is closed to new replies.