Home Forums WoodMart support forum Misalignment of blog articles – how to fix?

Misalignment of blog articles – how to fix?

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

    ivoltbg
    Participant

    Hello, on the blog here https://ivoltbg.info/blog/
    about why there is a misalignment between the articles. I am attaching a screenshot. How can this be fixed so that all the articles are aligned evenly?

    Best regards,
    Nikola

    Attachments:
    You must be logged in to view attached files.
    #686086

    Hello,

    It is due to the content you have added: https://postimg.cc/bSnrVJy2 , Please try to add equal content, then it will look perfect.

    If you have any questions feel free to contact us.

    Best Regards,

    #687374

    ivoltbg
    Participant

    Hi,

    This seems like an impossible task. Could you tell me another way to achieve it with styling so that it doesn’t expand when the text is longer?

    Best regards,
    Nikola

    #687450

    Hello,

    Please add the below Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS:

    .blog-design-meta-image .wd-post-inner {
        min-height: 300px; 
    }

    Best Regards,

    #687477

    ivoltbg
    Participant

    Hello,

    I added a topic with slightly longer content and it expanded to its maximum. Could you tell me what value I should now set for “min-height:” so that they can be aligned under all circumstances?

    You can check again at https://ivoltbg.info/blog/

    Best regards,
    Nikola

    #687529

    Hello,

    I’ve checked your blog again — the reason the alignment still varies is that min-height only sets the minimum height of the card. If one post has more text than the others, its container will grow beyond the min-height value, so they’ll never be perfectly aligned on all screen sizes if the content length isn’t equal.

    Please remove the previous code and add the below Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS:

    .blog-design-meta-image .wd-post-inner {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .blog-design-meta-image {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .wd-blog-holder .wd-blog-grid {
        align-items: stretch;
    }

    Best Regards,

    #687607

    ivoltbg
    Participant

    Hello,

    Perfect, that’s exactly what I meant, just as you explained. Thank you for the wonderful solution. I really, really like it!

    You can close the topic, thank you!

    Best regards, Nikola

Viewing 7 posts - 1 through 7 (of 7 total)