[Resolved] Aliging within a container

Home Forums Support [Resolved] Aliging within a container

Home Forums Support Aliging within a container

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2356081
    Erika

    Hi there,

    probably a very basic question…

    I´d like to align the two child containers in the parent container with “align-content: stretch”. I added the parent conatiner a class and this css:
    .flextopdown {
    display:flex;
    flex-direction:column;
    align-items: stretch;
    }

    But I do not get the expected result. Why?

    Basically the outer container unter the image should be the same height as the image and I´d like the button be at the bottom, regardless how much text is above (stretch).

    Maybe there is even a setting that would reach this without css, I just can´t find?

    Thanks, Erika

    #2356729
    Ying
    Staff
    Customer Support

    Hi Erika,

    Try this CSS:

    .flextopdown {
        display:flex;
    }
    .flextopdown >.gb-inside-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    #2357248
    Erika

    Thank you, Ying, works nicely. Erika

    #2357921
    Ying
    Staff
    Customer Support

    You are welcome 🙂

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