Practice and reinforce the concepts from Lesson 13
In this activity, you'll master CSS Flexbox by helping frogs reach their lily pads! You'll learn how to:
justify-content
to align items horizontallyalign-items
to position items verticallyflex-direction
flex-wrap
To apply concepts of CSS Flexbox through an interactive activity.
In this activity, you will learn and practice CSS Flexbox by playing Flexbox Froggy, a fun game where you guide a frog to its lilypad using CSS code.
⏱️ Estimated time: 30-45 minutes
Check that you have:
justify-content
align-items
flex-direction
flex-wrap
tip Getting Stuck? If you're stuck on a level:
:information_source: Info Submission Required You'll need to submit your Level 18 screenshot as proof of completion. Make sure your screenshot clearly shows:
Controls alignment along the main axis (horizontal by default):
flex-start
- Items align to the startflex-end
- Items align to the endcenter
- Items align to the centerspace-between
- Items spread out with space betweenspace-around
- Items have equal space around themspace-evenly
- Items have equal space between themControls alignment along the cross axis (vertical by default):
flex-start
- Items align to the startflex-end
- Items align to the endcenter
- Items align to the centerstretch
- Items stretch to fill containerbaseline
- Items align to their baselineControls the direction of the main axis:
row
- Horizontal direction (default)row-reverse
- Horizontal, reversedcolumn
- Vertical directioncolumn-reverse
- Vertical, reversedControls whether items wrap to new lines:
nowrap
- Items stay on one line (default)wrap
- Items wrap to new lineswrap-reverse
- Items wrap in reverse ordertip Pro Tips
After completing Level 18, you should be comfortable with:
flex-wrap
for multi-line layoutsNote: This activity is designed to provide hands-on experience with CSS Flexbox. The concepts learned here are fundamental for modern web layout design and will be essential for creating responsive, flexible web layouts in your future projects.
Flexbox is one of the most important CSS layout tools used by professional web developers, and mastering it will significantly improve your ability to create sophisticated web designs.
:warning: Remember Complete at least up to Level 18 and take a screenshot for submission!
:emoji: Ready to guide the frog home? Click the link above and start your Flexbox Froggy adventure!