Okay
  Public Ticket #2417197
Masonry blog wider than a content
Closed

Comments

  •  4
    Marcin started the conversation

    Hi, could please check why the blog items extend on right side the site content?

    Right side of the menu is much to the left than a right edge of the blog items.

    Please see attached.

  •  2,979
    Andrew replied

    Hi Marcin,

    The issue is not visible from my end. Tried in various screen resolution but not able to replicate. Could it be a cache issue. Try checking in browser incognito mode.

    9374508497.png


    Thanks.

  •  4
    Marcin replied

    Hi Andrew

    1.Thanks, but I removed menu right margin so it should be aligned at 0.

    2. Also cant find the right css to move title/category on blog in mobile from the left side a bit.

    Please see attached.


  •  2,979
    Andrew replied

    Hi Marcin,

    The following will add padding left:

    @media only screen and (max-width: 768px){
        .masonry.material .masonry-blog-item .article-content-wrap, .masonry.material .masonry-blog-item .meta-category, .related-posts[data-style="material"] .meta-category {
        padding-left: 15px !important;
    }
    }
    

    Thanks.

  •  4
    Marcin replied

    Thank you, I have tried this but will no luck

    http://nowy.avantmodels.de

    I have this in my css panel, maybe some conflict?

    .masonry.material .masonry-blog-item .article-content-wrap, 
    .masonry.material .masonry-blog-item .meta-category, 
    .related-posts[data-style="material"] .meta-category {
        padding: 5px 0 0 0!important;
    }


  •  2,979
    Andrew replied

    Hi Marcin,

    That is causing it. It looks okay when commented off.

    1018877818.png


    Thanks.

  •  4
    Marcin replied

    And is there an option to have 0 padding on desktop and 30px on mobile?

  •  2,979
    Andrew replied

    Hi Marcin,

    Use the css media queries to apply css on different screen sizes. The first is for desktop while the other is for mobile.

    /* Desktop */
    @media only screen and (max-width: 768px){
        .masonry.material .masonry-blog-item .article-content-wrap, .masonry.material .masonry-blog-item .meta-category, .related-posts[data-style="material"] .meta-category {
        padding-left: 0 !important;
    }
    }
    /* Mobile */
    @media only screen and (max-width: 768px){
        .masonry.material .masonry-blog-item .article-content-wrap, .masonry.material .masonry-blog-item .meta-category, .related-posts[data-style="material"] .meta-category {
        padding-left: 15px !important;
    }
    }
    

    Kind regards.

  •  4
    Marcin replied

    Perfect, thank you Andrew!

    and what can I do with this blog items expanding outside the container?

    Portfolio items are ok.

  •  2,979
    Andrew replied

    Hi Marcin,

    That material layout style is supposed to have that design. Try classic enhanced style

    3435577880.png


    Thanks.

  •  4
    Marcin replied

    Hi Andrew,

    Thanks but it need to to be masonry material like it is now. There is no way to add some right padding or margin, or decrease a space between the items? It looks like 15px too wide on the right.

  •  2,979
    Andrew replied

    Hi Marcin,

    Try the following css:

    .page-id-5 .container-wrap .vc_row-fluid[data-column-margin="none"] > .span_12, body .container-wrap .vc_row-fluid[data-column-margin="none"] .full-page-inner > .container > .span_12, body .container-wrap .vc_row-fluid[data-column-margin="none"] .full-page-inner > .span_12 {
        margin-left: -9px !important;
    }
    

    Kind regards.

  •  4
    Marcin replied

    Thank you, it help a bit. Hope that Client will accept it.

    Why this doesn't work on the clone site?

    http://nowy.avantmodels.de

  •  2,979
    Andrew replied

    Hi Marcin,

    It seems the contents are not going outside container. Confirm if you have the same custom css in Salient > General settings > CSS/Script related.

    Thanks.

  •   Marcin replied privately
  •  2,979
    Andrew replied

    Hi Marcin,

    Sorry for late response.

    Everything seems to be working properly on both. Likely it was a caching issue as the two site looks identical now..

    Thanks.

  •  4
    Marcin replied

    Hi,

    I have found the reason, the column margin was set differently. Now is all good, thank you!