📖 Scenario: You are designing a simple webpage layout using Webflow. You want to arrange content boxes neatly using Flexbox and Grid layouts to make the page look clean and responsive.
🎯 Goal: Build a basic webpage layout in Webflow using Flexbox to align items horizontally and Grid to organize content in rows and columns.
📋 What You'll Learn
Create a container with three content boxes using Flexbox to align them horizontally with equal spacing.
Add a configuration to set the Flexbox container to center items vertically.
Create a grid layout with two rows and three columns inside another container.
Add final styling to the grid cells to have visible borders and padding.
💡 Why This Matters
🌍 Real World
Web designers use Flexbox and Grid in Webflow to build responsive and organized webpage layouts without writing code.
💼 Career
Understanding Flexbox and Grid in Webflow is essential for front-end designers and no-code developers to create modern, flexible web designs efficiently.
Progress0 / 4 steps
1
Create a Flexbox container with three content boxes
In Webflow, create a div element with the class flex-container. Inside it, add three div elements each with the class flex-item. This sets up the initial structure for a Flexbox layout.
No-Code
Hint
Use the Webflow Designer to add a div block and assign the class flex-container. Then add three div blocks inside it with class flex-item.
2
Configure the Flexbox container to center items vertically
Select the flex-container in Webflow and set its display setting to Flex. Then set the Align Items property to Center to vertically center the three flex-item boxes.
No-Code
Hint
In Webflow's Style panel, choose Flex for the container's display and set Align Items to Center.
3
Create a grid container with two rows and three columns
Add a new div with the class grid-container. Inside it, add six div elements each with the class grid-item. Then configure the grid-container in Webflow to have 2 rows and 3 columns.
No-Code
Hint
Use Webflow's grid layout option to set 3 columns and 2 rows for the grid-container. Add six child divs with class grid-item.
4
Add borders and padding to grid items
In Webflow, select all grid-item elements and add a 1px solid border and 1rem padding to each. This visually separates the grid cells and adds spacing inside them.
No-Code
Hint
Use Webflow's Style panel to add a 1px solid border and 1rem padding to the grid-item class.
Practice
(1/5)
1. In Webflow, what is the main purpose of using Flexbox?
easy
A. To arrange items in a row or column easily
B. To add animations to elements
C. To change the color of text
D. To create pop-up windows
Solution
Step 1: Understand Flexbox basics in Webflow
Flexbox is used to arrange items either in a row or a column with flexible spacing.
Step 2: Compare with other options
Options A, B, and C describe unrelated features like pop-ups, animations, or colors, not layout.
Final Answer:
To arrange items in a row or column easily -> Option A
Quick Check:
Flexbox = row or column layout [OK]
Hint: Flexbox arranges items in one direction: row or column [OK]
Common Mistakes:
Confusing Flexbox with animation tools
Thinking Flexbox changes colors
Mixing Flexbox with pop-up creation
2. Which Webflow setting correctly enables Grid layout on a container?
easy
A. Set Display to Block
B. Set Display to Flex
C. Set Display to Grid
D. Set Position to Absolute
Solution
Step 1: Identify the correct display setting for Grid
Grid layout requires setting the container's display property to 'Grid' in Webflow.
Step 2: Eliminate incorrect options
Block is default layout, Flex is for flexbox, Absolute is for positioning, not layout.
Final Answer:
Set Display to Grid -> Option C
Quick Check:
Grid layout = Display: Grid [OK]
Hint: Grid layout needs Display set to Grid, not Flex or Block [OK]
Common Mistakes:
Choosing Flex instead of Grid for grid layout
Confusing position settings with display
Leaving display as Block for grid
3. If you set a Flex container in Webflow with Justify: Space Between and three items inside, how will the items be spaced?
medium
A. Items evenly spaced with equal gaps between them
B. All items grouped at the start with no space
C. Items stacked vertically with no gaps
D. Items centered with equal space around them
Solution
Step 1: Understand 'Justify: Space Between' in Flexbox
This setting places the first item at the start, last at the end, and evenly spaces items between.
Step 2: Visualize three items with space between
With three items, the two gaps between them are equal, spreading them across the container.
Final Answer:
Items evenly spaced with equal gaps between them -> Option A
Quick Check:
Space Between = equal gaps between items [OK]
Hint: 'Space Between' puts equal space only between items, none at edges [OK]
Common Mistakes:
Thinking items cluster at start or center
Confusing 'Space Between' with 'Space Around'
Assuming vertical stacking without flex direction
4. You tried to create a 3-column grid in Webflow but all items stack vertically. What is the most likely mistake?
medium
A. You forgot to add items inside the container
B. You used too many grid rows
C. You set the container width to 100%
D. You set the container display to Flex instead of Grid
Solution
Step 1: Check container display setting
If display is Flex, items arrange in a row or column but not as a grid with multiple columns.
Step 2: Understand stacking behavior
Flex with default column direction stacks items vertically; grid is needed for columns.
Final Answer:
You set the container display to Flex instead of Grid -> Option D
Quick Check:
Grid needs Display: Grid, not Flex [OK]
Hint: Grid layout requires Display set to Grid, not Flex [OK]
Common Mistakes:
Assuming width affects stacking
Forgetting to add grid columns
Confusing rows with columns
5. You want a responsive layout in Webflow where items wrap to new lines on small screens using Flexbox. Which setting should you enable?
hard
A. Set container Display to Grid
B. Enable 'Wrap Children' on the Flex container
C. Set container Position to Fixed
D. Disable Flexbox and use Block display
Solution
Step 1: Identify how to allow wrapping in Flexbox
Flexbox containers can wrap items to new lines by enabling the 'Wrap Children' option in Webflow.
Step 2: Understand why other options fail
Grid is a different layout, Position Fixed locks element position, Block display stacks items without flex features.
Final Answer:
Enable 'Wrap Children' on the Flex container -> Option B
Quick Check:
Flex wrap = 'Wrap Children' enabled [OK]
Hint: Enable 'Wrap Children' to let flex items move to new lines [OK]
Common Mistakes:
Confusing Grid with Flex wrapping
Using fixed position which breaks flow
Disabling Flexbox removes layout control
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.