Trying to replicate an old site’s CSS grid with the new blockgrid. It has 6 blocks in 2 rows. Each row’s blocks are the same height, even though the height of the content is different.
In the attached image, the top 6 block are the old site with css grid (and flexbox to stretch the content). The bottom 6 boxes are the new block grid.
My problem is that I can’t work out what I need to do to replicate this in blockgrid. I have a layout block of 3 horizontal blocks, each section of which has another block containing a title, RTE and button vertically. Is it possible, given the way block grid works to get all three layout blocks the same height?
I’d be interested to know if anyone has any hacks for this.
The key to achieving equal columns is how you structure the internal code of the items. You’ll note that most of the styling is happening on the .flex-inner, for example, adding height:100%. I then use the align-content: end; on the .flex-button to ensure that it sits at the bottom.
The result now shows the equal columns with the button correctly aligned to the bottom. You’ll need to add a little more styling to match your design exactly. My example is just the basics for the flexbox itself.