Skip to content
KBHXgamesAll games

Play Flexbox Lily Pond Online

Pick up CSS flexbox by coding real rules that hop frogs onto lily pads that match their color, over 24 stages.

Flexbox Lily Pond gameplay screenshot
  • Touch-ready

Tip: rotate your phone to landscape for a larger screen.

Flexbox Lily Pond at a glance

Genre
Puzzle Games
Play with
Keyboard, Mouse, Touch screen
On phones
Yes, touch works
Players
1 player
Price
Free, no sign-up
License
MIT

Flexbox Lily Pond is a friendly way to learn CSS flexbox, using a pond and a few colorful frogs. Each green, yellow or red frog wants to sit on the lily pad that shares its color. You guide them with genuine CSS written for the pond element, exactly what you would use to arrange a real web page. The frogs hop around the instant you type, so you see what every property does.

What Is Flexbox Lily Pond?

It is a 24-stage tutorial dressed up as a puzzle. On each stage you get a brief explanation, an editor and the pond. The editor already turns flex layout on, and your job is to write the rest. When every frog rests on a pad of its own color, Next becomes clickable.

How a Round Plays Out

  1. Read the explanation and note where the pads sit.
  2. Type the declarations that are missing. The pond updates live.
  3. Early stages shift frogs sideways with justify-content and vertically with align-items.
  4. Then flex-direction flips the layout into a column or reverses it, which also swaps the meaning of start and end.
  5. Later stages move one frog using order or align-self, split frogs over several lines with flex-wrap or flex-flow, and spread those lines with align-content.
  6. Some stages combine two or three of these at once.

Progress and your typed code stay in the browser, and finished stages are marked in the menu.

Keys and Buttons for Flexbox Lily Pond

Keyboard, mouse and touch controls for Flexbox Lily Pond
What you do⌨ Keyboard🖱 Mouse👆 Touch
Type CSSType in the code box—Tap the code box and use the on-screen keyboard
Submit a correct answerEnter on the last line, or Ctrl + EnterClick "Next" once it lights upTap "Next"
Pick a level—Click the level counter, then a level number, or use the side arrowsTap the level counter, then a level number
Read about a property—Click a highlighted property name in the instructionsTap a highlighted property name
Change difficulty or colorblind mode—Click "Settings" under the editorTap "Settings"

Winning Strategies

  • Know your main axis. Justify-content follows flex-direction, so in a column it moves frogs up and down.
  • Click the highlighted words. They list every value a property allows.
  • Expect reversed sides. With a reverse direction, flex-start lands on the opposite edge.
  • Touch only the target frog. Single-frog stages give you a selector for one color.
  • Separate the two aligns. One aligns frogs inside a line; the other spaces whole lines apart.

Handy Details

  • Settings include a colorblind mode.
  • On phones the editor sits above the pond, and you type with the on-screen keyboard.

Who Should Play It

Flexbox Lily Pond is a great choice for beginning web developers, students and designers who want flexbox to finally make sense. If you like coding puzzles or visual layout tutorials, it is an easygoing way to practice.

Played and checked by the KBHX Games team · updated

Flexbox Lily Pond: Questions and Answers

How does the game decide I solved a stage?

It runs your CSS on the pond itself and then looks at whether each pad is occupied by a frog of matching color. Any valid rules that get there are accepted, so you never need to copy one exact solution.

What do the difficulty options change?

Beginner keeps the lesson text visible. Intermediate removes it, so you rely on the pond alone. Expert removes it as well and jumps to a random stage every time you move forward.

Why is the code box so short?

It only offers as many lines as that stage expects declarations. Two properties needed means two lines, and hitting Enter on the final line tries to submit what you wrote.

If You Liked Flexbox Lily Pond, Try These