• Hello everyone,

    I wanted to display blog posts from homepage (https://www.p4tru.ro) and blog page (https://www.p4tru.ro/blog/) in two columns on small devices and for this I have added the following code to Theme Options – Custom CSS:

    @media only screen and (max-width: 800px) {
    .fusion-blog-shortcode-1 .fusion-blog-layout-grid .fusion-post-grid {
    padding: 7px 3px !important;
    }
    .fusion-blog-layout-grid.fusion-blog-layout-grid-3 .post {
    width: 50% !important;
    display: inline-block;
    float: left !important;
    position: initial !important;
    }
    }

    Does someone have any idea why not all blog posts are correctly aligned in columns ? Please see: https://www.screencast.com/t/SwKfKsWhqY1y

    I would be grateful if anybody can help me with that.

    Thank you very much.

    C. Silviu

Viewing 4 replies - 1 through 4 (of 4 total)
  • .fusion-blog-layout-grid.fusion-blog-layout-grid-3 .post {
        display: inline-block;
        float: left !important;
        position: initial !important;
        width: 50% !important;
    }

    that position: initial !important;, removing it appears to make them line up correctly, or at least what I am assuming to be correct. But, there is a ton of javascript targeting these divs so not 100% sure if that would be the route to take.

    Thread Starter silviuclg

    (@silviuclg)

    Hi tugbucket,

    Thank you very much.

    Now the empty spaces has disappeared but the content boxes still aren’t aligned (this is the result now: https://www.screencast.com/t/8Cd3reohzc6E ).

    Definetly, now is better but what I want for a final result is to have these content boxes equals and aligned (like this: https://www.screencast.com/t/SVX5WajUFiI ).

    I’ve increased the margin-bottom but it doesn’t help.

    If you have some sugestions, I would be grateful.

    Thanks again.

    C. Silviu

    Well you’re using some Masonry plugin and having them kind of defeats the purpose of Masonry but, I guess you could try: https://codepen.io/micahgodbolt/pen/FgqLc

    You’re going to need something to make those boxes equal heights and redo it on resize. The above appears to handle it but I didn’t do any testing on it and it’s not my code.

    you could also look in to what ever plugin ins you are using and see if equal heights is an option. It might already be in there.

    Thread Starter silviuclg

    (@silviuclg)

    Hi again,

    For me it would be ok even if the content boxes are aligned only on the top, like here: https://www.screencast.com/t/TOcnTBXGzMk

    I’m sure there is a trick on the code but I can’t find it.

    Yesterday, it was a moment when the boxes was aligned but without to modify the code, the miracle was gone, with the wind ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Blog posts are'n correctly aligned in columns’ is closed to new replies.