Solving a CSS flexbox layout
Read the goal and enter CSS in the editor to move frogs onto their lily pads. The task is to describe a layout, not drag each frog to a location. Each level supplies a specific arrangement and asks you to use flexbox properties to reproduce it.
Watch which axis a property affects. Justify-content, align-items and changes in flex direction do not all perform the same job. Make one small edit, observe its effect, and compare it with the target before adding another property.
Distinguishing the main axis from the cross axis
With the default row direction, justify-content changes placement along the horizontal main axis and align-items works along the vertical cross axis. If a frog needs to move across a row, changing the wrong property can leave it in the same column.
When flex-direction switches to a column, those axes turn with it. Read the target again before reusing a solution from a row level. Property names such as justify-content and align-items are CSS code and keep their spelling even when the surrounding instructions are translated.
Predict what happens when the container changes from a row to a column while justify-content stays the same. Explain the direction of movement before checking the result.
Learn CSS with Games: Flexbox Froggy and Grid Garden
Flexbox Froggy guide · Identify the axis before choosing a CSS property
Read the level's target lily pads and inspect the current arrangement of frogs. In the default row direction, justify-content works along the horizontal main axis and align-items along the vertical cross axis. Before typing a value, state which axis you want to change. This habit prevents a common mistake: choosing the right-looking value for a property that controls a different direction.
When flex-direction changes to column, the main and cross axes change with it. Re-evaluate the property instead of assuming that justify-content always means horizontal movement. Enter one CSS change in the editor and compare the resulting positions with the targets. The frogs are positioned by your CSS, not dragged into place. Use the level's hints and allowed properties to keep the experiment tied to the task actually shown.
Explain an unsuccessful change before trying another
After a change misses the target, ask whether the property affected the wrong axis, the chosen value arranged items differently from your expectation, or the current direction changed the meaning of the layout. Keep the part of the rule you understand and revise one thing. Replacing several properties at once can reach the target while leaving you unsure which change solved the problem.
For a review exercise, describe the successful rule in words before moving on: which axis it used and how it positioned the frogs relative to the lily pads. Later levels can combine ideas, so this explanation is more useful than memorizing a line without its context. This guide does not provide an invented complete answer list or claim that solving the game certifies professional CSS skill. The linked play page gives the editor controls and exact task framing; the center supports understanding and practice across the levels you actually encounter.
For example, if a rule changes the frogs vertically when you intended horizontal movement, inspect flex-direction and identify the current main axis before selecting another value. Say the relation aloud: this property changes distribution along the main axis, and the main axis currently runs in this direction. Then make one edit and inspect the result. Once it works, test your explanation against the visible lily pads. This turns a failed guess into a reusable layout idea instead of a command you remember only for one screen.
Flexbox Froggy tips and strategy
Tick a tip to focus on in your next run. This checklist does not change your game or save progress.
Flexbox Froggy questions and answers
Do I need to install a coding tool?
No. The CSS editor is inside the browser game.
Is this a complete web-development course?
It is an interactive practice game for flexbox layout concepts. It does not replace a broader HTML and CSS course.
Who created the project?
Thomas Park created Flexbox Froggy. The source is MIT-licensed and the recorded artwork uses CC BY 3.0; attribution links are below.
Why does flex-end move a frog the opposite way after reversing direction?
Flexbox start and end follow the current main axis, not fixed left and right edges. With row-reverse, the main axis starts on the right, so justify-content: flex-end moves items toward the left. Check flex-direction first, then choose the alignment value. Changing align-items instead adjusts the cross axis and solves a different problem.
Device and progress questions
Does a Cozcade account save my Flexbox Froggy progress?
A favorite is a saved link to Flexbox Froggy, not a backup of your progress. Internal saves depend on the game's own storage. Signing in to Cozcade does not by itself transfer a board, score or lesson between browsers or devices. Use this Flexbox Froggy guide to check the exact edition and its instructions.
Can clearing browser data remove my Flexbox Froggy progress?
Removing cookies or site storage used by Flexbox Froggy can erase local progress. Cached files are a separate category, although browser cleanup options may remove several categories together. Check the selected data categories first. If this edition documents an export feature, save an export before clearing storage.
How can I check whether Flexbox Froggy works on my device?
Read the Flexbox Froggy controls and use the catalogue's device options before starting. A keyboard or precise pointer may be required for a particular action. This Flexbox Froggy guide records the scope of available checks; a successful desktop start does not establish comfortable touch play on every phone.
Flexbox Froggy guide: sources and edition
By Cozcade
- Current edition
- 9a6feab850a5-c3
- Recorded play check
- 9a6feab850a5-c2 ·
The original source and current Cozcade edition are linked here. A recorded short desktop session does not establish every level, long-session stability or every phone.
This edition differs from the recorded play check. The earlier result does not verify this version.