Site logo

[Resolved] How to set fixed height of container when used as a content template element

Home Forums Support [Resolved] How to set fixed height of container when used as a content template element

Home Forums Support How to set fixed height of container when used as a content template element

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2478487
    nomadiceman

    I’m trying to figure out how to set the same height for the blog archives.

    I want the image to be below the excerpt and all blog archives be the same height so that all the images line up

    You can see the example in the URL I’ve given

    Basically, I want all blog archive boxes to be the exact same height so the bottom and top all align on desktop

    thank you for your help, its very much appreciated

    #2478737
    David
    Staff
    Customer Support

    Hi there,

    with the current version of GenerateBlocks it will require some CSS.
    If you can create your Content Template, and let me see it, i can advise the changes that need to be made and the CSS to be added.

    #2479268
    nomadiceman

    That’s awesome David, included is the info

    #2479554
    David
    Staff
    Customer Support

    Try this CSS:

    
    .generate-columns-container .dynamic-content-template > .gb-container,
    .generate-columns-container .dynamic-content-template > .gb-container > .gb-inside-container {
        height: 100%;
    }
    .generate-columns-container .dynamic-content-template > .gb-container > .gb-inside-container {
        display: flex;
        flex-direction: column;
    }
    .generate-columns-container .dynamic-content-template .dynamic-entry-excerpt {
        margin-bottom: auto;
    }
    #2480100
    nomadiceman

    Thank you. That worked perfect

    #2480496
    David
    Staff
    Customer Support

    Glad to hear that

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.