Create a responsive grid layout with techniques that you can adapt to different designs.
Skill set: Basic
Area: UI only
Length: 5 minutes
- Youʻll need a Builder account.
- An evergreen browser; that is, a modern, up-to-date browser such as Google Chrome.
The usual way to create a grid is to use the Columns block, and this technique can be used most of the time.
To do so, in your page, click the Insert tab, and under Layout, drag the Columns block onto the work area.
Select the Columns block, and click the Edit button to adjust the number of columns.
In the Columns menu that opens, you can add or remove columns, set at which device the columns will stack, adjust the spacing between them, and set the direction when stacked.
To add more rows of columns to make your grid, next to the Edit button, click the down arrow. Select Duplicate. If you style the first block of columns before you duplicate, you won't have to adjust the styles in the subsequent rows of columns.
Here's a 2X3 grid. You can delete the Text blocks below each if you like.
For more information on using columns, visit Using Columns to Build Responsively.
To create a grid using the Builder Grid, you'll need to have an element, here a Box, with another Box inside it. This is because to use the Child Element styling, there must be children.
Drag a Box onto the blue work area. Then drag another box onto that Box.
Select the outer of the two boxes. You can check the Layers tab if you're not sure which you've selected.
With the outside/parent Box selected, go to the Style tab and under Layout and Child Layout, click the Grid icon. The tooltip on the Grid icon has the label "Wrap."
The Layers tab shows that the parent Box now has the Grid icon next to it.
Now drag a Box into that box, and with the outer Box selected, on the Style tab you can give it a background color to make it more obvious while following along.
Next, click the Edit button for the small Box and select Duplicate.
Duplicate the Box another four times so you have six small boxes in all.
Next, select the outer box and on the Style tab change the Justify Content setting to Space Between.
Your grid is now complete. Here's how it looks:
Because the Builder Grid is responsive, here's how it looks on a mobile device:
To learn more of what you can do in Builder, check out the other tutorials in the Video Library or build out a page with more sections and techniques in the Getting Started.