Play Flexbox Lily Pond Online Free

Guide colored frogs onto matching lily pads by writing real CSS flexbox rules, one idea per level.

Flexbox Lily Pond title screen on SZ Games
  • Touch ready

Tip: rotate your phone to landscape so the play area gets wider.

Flexbox Lily Pond is a friendly coding game that teaches CSS flexbox with frogs. Green, yellow and red frogs need to reach lily pads of the same color. You get them there by writing real CSS for the pond, the same kind you would use to lay out a web page. Every keystroke moves the frogs, so you see each property work.

Why Frogs Make Flexbox Click

Flexbox is about lining items up along a main axis and a cross axis. Those words feel abstract at first. Watching frogs slide left, right, up and down as you change a value makes the ideas concrete. You learn by trying, not by memorizing.

How a Level Works

The screen has three parts: a short lesson, a code box and the pond. The code box already sets display: flex; on the #pond container. You add the missing lines.

Your code applies as you type. When every frog sits on a pad of its color, the Next button lights up. Any valid CSS that gets there counts, so you can solve a level your own way. The code box only has as many lines as the level needs, and pressing Enter on the last line submits.

How to Control Flexbox Lily Pond

Input guide for Flexbox Lily Pond
To do thisOn a keyboardWith a mouseOn a touchscreen
Write CSSType into the code box—Tap the code box to bring up the on-screen keyboard
Send in a correct answerPress Enter on the final line, or Ctrl + EnterHit "Next" when it lights upTap "Next" on screen
Choose a level—Click the level counter and then a number, or use the arrows at the sidesTap the level counter and then a number
Learn about a property—Click any highlighted property name in the instructionsTap any highlighted property name
Adjust difficulty or colorblind mode—Hit "Settings" below the editorTap "Settings" on screen

The Path Through 24 Levels

The lessons build step by step:

  1. justify-content moves frogs along the row, and align-items moves them across it.
  2. flex-direction turns the row into a column or reverses it. That also flips where “start” and “end” are.
  3. order and align-self move a single frog.
  4. flex-wrap and flex-flow spread frogs over several lines.
  5. align-content spaces those lines apart.

The final levels ask you to combine several of these at once.

Coding Tips

  • Find the main axis first. In a column, justify-content moves frogs up and down, not sideways.
  • Click highlighted words. Each one opens a list of the values that property accepts.
  • Expect flips with reverse. With row-reverse, flex-start sits on the right side.
  • Change one frog at a time. Levels about order and align-self give you a rule for just one frog color.
  • Tell the aligns apart. align-items moves frogs inside each line, while align-content moves whole lines.

Who It Helps

This game suits new web developers, students and anyone who keeps looking up flexbox values. It works on phones, where the editor and pond stack, but a larger screen shows the whole pond while you type. When you finish, try grid layout in CSS Grid Carrot Patch.

Last played and checked by SZ Games:

Flexbox Lily Pond – Questions and Answers

Which flexbox properties does it cover?

It covers justify-content, align-items, flex-direction, order, align-self, flex-wrap, flex-flow and align-content. Later levels mix two or three of them in one answer.

Is there a colorblind option?

Yes. Open Settings under the editor and turn on colorblind mode. It swaps in frog and lily pad drawings with extra markings so you are not relying on color alone.

Can I make it harder?

Settings has three levels. Beginner shows the lessons, Intermediate hides them, and Expert hides them and sends you to a random level each time you press Next.

Is my progress saved?

Yes. Your typed answers and solved levels stay in your browser, and solved levels are marked in the level menu.

Try Something Different