Mini Project: Responsive Learning Dashboard
Combine CSS Grid, Flexbox, sticky navigation, and fluid spacing to build a polished course dashboard layout.
What you'll learn
- Use CSS Grid for the outer sidebar + main shell
- Use Flexbox for the top header and metric pill rows
- Use auto-fit Grid for responsive course progress cards
In real production websites, you rarely use only Flexbox or only Grid, you combine them. Use Grid for macro page regions and card grids, and Flexbox for alignment inside headers, buttons, and small rows.
Try It Yourself: Course Dashboard
Experiment with the grid column widths, change the accent color, or add a fourth stat card:
CSS Layout Final Check
1. Which layout tool is best for a top navigation bar with a logo on the left and action buttons on the right?
2. Which Grid rule creates responsive cards that automatically wrap to fit available width without media queries?
Auto-Graded Capstone Challenge
Style the .navbar with Flexbox and .cards with CSS Grid so all 4 automated layout tests pass!
CSS Capstone Challenge: Flexbox Header + Grid Cards
Make .navbar a horizontal Flexbox bar with space-between alignment, and turn .cards into a CSS Grid with a visible gap.
- .navbar uses display: flex
- .navbar uses justify-content: space-between
- .cards uses display: grid
- .cards sets a non-zero gap (e.g. gap: 12px)
Finished this lesson?
Your progress is saved locally in your browser, no account needed.