Responsive Grid Design: Creating a Custom Layout in Webflow

Published on
October 13, 2022

Creating a Responsive Grid in Webflow

In the last tutorial, we discussed the fantastic 'grid autofit' feature, which allows you to fit items into your grid, making the entire grid responsive. However, what if you need the last two items in the grid to span across the entire width? In this tutorial, we will cover how to achieve this in Webflow.

Step 1: Selecting the Parent Element

To start, select the parent element, which in this case, is the 'products home list.'

Step 2: Switch to Flexbox

Instead of using the grid, switch to the flexbox for the selected parent element.

Step 3: Set Children Property to Wrap

After switching to flexbox, set the children property to wrap. This ensures that the items wrap onto the next line when they reach the edge of the container.

Step 4: Customize the Grow and Shrink Behavior

To achieve the desired layout, customize the grow and shrink behavior for the child elements. Under the sizing options, customize the grow and shrink behavior to allow more customization.

  • Click on the ellipsis (...) and set the 'grow' to 1 and the 'shrink' to 1. This ensures that the item will grow if possible and shrink if necessary to fit the layout.

  • Set the basis, which is the desired width of the item, to the appropriate value. This indicates how much space the item should occupy within the container.

Step 5: Set the Gap Property

The 'gap' property should also be set if the desired grid is not automatically in place. Set the 'gap' to ensure proper spacing between the items.

Step 6: Preview and Responsiveness

Preview the layout and resize the canvas to observe the responsiveness. As you resize, you will notice that all the items are responsive, adapting to various screen sizes.

By following these steps, you can create a responsive grid in Webflow with specific items spanning the entire width.

Webflow's flexbox capabilities allow for intricate customization, ensuring that your layout adapts seamlessly to different screen sizes. With the flexibility and control provided, you can create visually appealing and responsive designs. Utilizing features like the flexbox in Webflow enables you to cater to specific client requirements while maintaining a responsive and visually captivating design.