Column Grids in Page Builder

Apply the .cols-grid class to a .cols-x block to make every column the same height and assure the elements within each column stretch to fill the column's space.

No Grid is Required

Note that if all you want to do is add background colors or borders to columns, the grid layout is not required. The columns themselves are the same height by default unless a class like .align-items-center or .align-items-end or .align-items-start is implemented, so just add the border or background class to the column itself. The column grid layout is only needed when multiple sub elements appear within the columns.

There's not much content here.

This is a short sentence.

This column has quite a bit more content than the other columns.

The imbalance in the length of content that's presented alongside shorter content doesn't exhibit wonderful attention to detail on the author's behalf if this was a normal website

However in this case we did it on purpose to demonstrate a layout effect.

Three Cols - Grid

cols-grid

box border

Place content here. This one has shorter content.

box border

Place more content here. This one has quite a lot of content.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.

Quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

'box border last-child-end' inside the column.

 

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.

'box border' inside the column.

Quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Default Three Columns

cols-grid + ratio blocks

Specifically defined ratio blocks are included in the third column to demonstrate how other elements in the column will have a fluid height so that the height of the grid is always filled. So long as one of the elements in a column does not have a specific size defined, the grid height will be filled, but if every element in any individual column has a size defined then that column might not fill the grid space.

Place more content here. This one has quite a lot of content.

Direct descendats of a column in grid layout (including paragraphs) will stretch to auto-fill the column space evenly. This is so we achieve a natural "filled" grid effect with layout blocks, but it's a bit weird for fluid height blocks like paragraphs.

To work around this, if you want paragraphs in a grid column, simply place them within a sub element (e.g. <div>) to make sure they don't stretch.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.

Euismod elementum nisi quis eleifend quam. Integer vitae justo eget magna fermentum. Euismod in pellentesque massa placerat duis ultricies lacus sed turpis. Etiam non quam lacus suspendisse faucibus interdum posuere lorem.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.

This content is in a sub element (<div class="box">).

Quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Ratio 1x1. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.

Ratio 2x3. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.

Shorter content, no ratio.

This will push other columns to be taller.