Skip Navigation

[Resolved] Equal height for Toolset Grid via Block Editor

This support ticket is created 3 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by nickK-7 3 years, 4 months ago.

Assisted by: Jamal.

Author
Posts
#2185473

Hi, in the past I used flex to give the grid equal heights for images, titles, text and buttons but with the latest update this doesn't work anymore. I now used this css properties to achieve this:

.tb-grid-column>.wpv-block-loop-item>.tb-container {
height: calc(100% - 50px);
display: flex;
flex-direction: column;
justify-content: flex-end;
flex-wrap: wrap;
align-content: flex-start;
}

But now there is a large gap on top of some images on the archive page due to the different image sizes used (logo's).

Can you help me to get this fixed?

Best regards,
Nick

#2185639

Hello and thank you for contacting the Toolset support.

Maybe using justify-content: flex-start; could help with the images, but it will create a gap after the buttons. This happens because some titles are larger than others and take roughly two lines.

.tb-grid-column>.wpv-block-loop-item>.tb-container {
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-content: flex-start;
}

Maybe you want to set a min-height for the title block, or wrap it inside a container block and assign a min-height to it. The min-height should be higher or equal to the height of two lines.

I hope this helps. Let me know if you have any questions.

#2185683

Hi Jamal,

Thanks for your quick response. I solved it by reducing the height of the images. After giving the images a fixed height, the "flex-end" worked fine.

Best regards and have a nice weekend!

Nick