[Resolved] Equal height grid containers

Home Forums Support [Resolved] Equal height grid containers

Home Forums Support Equal height grid containers

  • This topic has 5 replies, 2 voices, and was last updated 1 year ago by Ying.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2586105
    Philip

    Hi Guys,

    I’m struggling a bit with equal height grid containers and thought you could help.

    I’ve followed the instructions below without success:

    https://docs.generateblocks.com/article/equal-height-grid-containers/

    I suspect it’s something simple — I just can’t see it.

    See private info.

    Thanks.

    Phil

    —–

    Host: WP Engine
    Server: Nginx
    PHP: 8.0.28
    WordPress: 6.1.1
    GeneratePress theme: 3.3.0 with starter child theme
    GP Premium: 2.3.0
    GenerateBlocks: 1.7.3
    GenerateBlocks Pro: 1.5.2

    #2586131
    Ying
    Staff
    Customer Support

    Hi there,

    1. Set the Grid containers to display: flex, flex-direction: column.

    2. Set the purple backgrounded container to flex-grow:1.

    #2586177
    Philip

    Thanks. That works.

    For future reference, is there something unusual about my layout that requires these additional settings?

    Phil

    #2586219
    Ying
    Staff
    Customer Support

    As you have additional containers inside the Grid containers.

    The documentation is more for a simple layout like this:

    
    -Grid
     - container
       - element 1
       - element 2
       - element 3 
     - container
       - element 1
       - element 2
       - element 3 
    #2586243
    Philip

    Understood. Thanks again for your help.

    #2586262
    Ying
    Staff
    Customer Support

    No problem!

    I probably should include a similar layout like yours as an example in the documentation as well 🙂

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