DEV Community

Cover image for 10 amazing games to learn CSS
Chris Bongers
Chris Bongers

Posted on • Originally published at daily-dev-tips.com

10 amazing games to learn CSS

Learning CSS can be quite a challenge. There are no shortcuts, and you will have to get your hands dirty and dive into the magical world of CSS.

But! There are some fun ways to learn this monster called CSS. This article will highlight ten amazing games you can play to learn CSS.

1. Flexbox froggy

Flexbox froggy CSS game

Flexbox froggy was one of the first CSS-solving games I've played, and I love it.
It's a super fun way to learn flexbox positions across the board.

You use CSS flex to place the frog on the correct Lilly.
It has 24 levels, and you can quickly see the results.

Play Flexbox froggy

2. Flexbox defense

Flexbox defense CSS game

Another super cool CSS game to learn flex is flexbox defense. In this game, you have to move around towers to defend a road from being attacked.

It has 12 levels, and it's pretty cool to see multiple answers can be correct.

Play Flexbox defense

3. Knights of the Flexbox Table

Knights of the Flexbox table CSS game

If you love Tailwind, this one is amazing!
It uses tailwind classes to teach you to flex options.
A super combination if you ask me, and it's well set up.

There are a total of 18 levels that you can clear.

Play Knights of the Flexbox table

4. Flex Box adventure

Flex box adventure CSS game

Another game much like Flexbox froggy, but with a different setup.
It also has some other challenges and hints from which you might learn a lot.

It has a total of 24 levels you can clear.

Play flexbox adventure

5. Flexbox zombies

Flexbox zombies CSS game

This game is super well set up in graphics!
I am blown away by how cool the storyline is.

It has 12 chapters, with each up to 25 levels. It usually costs money to play this one, but it seems free forever.

Play Flexbox zombies

6. Grid garden

Grid Garden CSS Game

Grid garden is a super fun way to learn CSS Grid. You have to use grid layouts to ensure all the carrots get water.

It has 28 levels to practice a lot of CSS grid options!

Play Grid garden

7. Grid attack

Grid attack CSS Game

This game is by the same creator as Flexbox adventure and super well-executed like the other game!

You have to use CSS Grid to change the land so the demons will not survive.

It comes with 80 levels, which gives you many options and time to learn CSS grid in a super fun way.

Play Grid Attack

8. CSS Diner

CSS Dinner CSS Game

This game is actually really interesting!
It's a game to learn about CSS selectors and some modern ones.

The game has 32 levels and entertaining animations to showcase what selector you should target.

Play CSS Diner

9. Guess CSS

Guess CSS Game

This game is very similar to CSS Diner, but you have to guess which selector matches the result you see.

This is an excellent concept as you always get to see the perfect result.

It's also not limited to specific CSS parts and includes many different ones.

Play Guess CSS

10. CSS Speedrun

CSS Speedrun

In this game, you have to write specific CSS Selectors to target5 the highlighted elements.

However, you have to do it as quickly as possible, making this a great challenge for those who like an extra level of hardness to their games.

The game comes with ten levels, but you can play more often and improve your speed.

Play CSS Speedrun

Bonus

Once you've mastered these games, you can enter some CSS challenges and battles to showcase all you learned.

Some great website for that are:

All these websites have a particular example you have to recreate most efficiently most of the time.

There are some excellent communities around these websites, and you'll have fun solving them.

Let me know what your favorite CSS game is 🙌.

Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter

Top comments (31)

Collapse
 
grahamthedev profile image
GrahamTheDev

Well I was zipping through flexbox froggy all proud of myself...then level 24 and honestly, it took my like 5 minutes lol!

Thanks for the annoying reminder that I need to spend more time practicing my CSS skills! 🤣

Collapse
 
dailydevtips1 profile image
Chris Bongers

Lol I think that level is famous for doing that 😂
There are whole reddit posts about it

Collapse
 
atulcodex profile image
🚩 Atul Prajapati 🇮🇳

This games are awesome no dought but real learning is very different. Games can't replace it :)

peace.
atulcodex

Collapse
 
dailydevtips1 profile image
Chris Bongers

Not sure I agree, it's a different way of learning and it really depends on what works for a person.

Collapse
 
atulcodex profile image
🚩 Atul Prajapati 🇮🇳

Oh man, you are a knowledgeable person :)

Collapse
 
robsonmuniz16 profile image
Robson Muniz

Hey DEV, nice 💡content, thanks for sharing it🙏🏻!

Collapse
 
dailydevtips1 profile image
Chris Bongers

Glad you liked it 💖

Collapse
 
robsonmuniz16 profile image
Robson Muniz

Yes, I loved it!

Collapse
 
star_trooper profile image
Atharva Shirdhankar

Awesome 💯

Collapse
 
dailydevtips1 profile image
Chris Bongers

Happy you enjoyed this 💖

Collapse
 
andrewbaisden profile image
Andrew Baisden

These look really cool!

Collapse
 
dailydevtips1 profile image
Chris Bongers

They are, and super fun

Collapse
 
ljmassive profile image
ljmassive

This was really fun, had a nice afternoon playing some guilt-free games!

Collapse
 
dailydevtips1 profile image
Chris Bongers

Nice! Glad you enjoyed them

Collapse
 
mahmoudessam profile image
Mahmoud EL-kariouny

Thanks for sharing these amazing websites 💖🙏🏻

Collapse
 
dailydevtips1 profile image
Chris Bongers

Super happy you like the article, did you get a chance to try some of them?

Collapse
 
grampasteve profile image
Stephen

would it be possible to get the code for some of these games as I enjoy rebuilding things to practise typing my code

Collapse
 
dailydevtips1 profile image
Chris Bongers

Not sure, some are build as a paid system but you might be able to find some of the smaller ones.

Collapse
 
stephen_connor_fa8de68c67 profile image
Stephen Connor

That would be great if you could thanks

Thread Thread
 
dailydevtips1 profile image
Chris Bongers

I know Ania does a lot of games, you might find it interesting to follow these.
youtube.com/watch?v=lhNdUVh3qCc

Collapse
 
grenmonika923 profile image
grenmonika923

Good day! Very interesting. Thank you.

Collapse
 
timhuang profile image
Timothy Huang

So interesting to learn CSS. Thanks for sharing.

Collapse
 
dailydevtips1 profile image
Chris Bongers

It's a fun way of learning it, glad you enjoyed it 🙌

Collapse
 
dailydevtips1 profile image
Chris Bongers

Some are fairly new, even if you know these concepts they are fun to play one evening 🙌

Collapse
 
kacmadushan profile image
K.A.C Madushan

Thank you Chris Bongers. It's awesome

Collapse
 
dailydevtips1 profile image
Chris Bongers

Thanks, glad you enjoyed it

Collapse
 
itsroshan137 profile image
Roshan Bhandari

Thumbs up

Collapse
 
sheriffderek profile image
sheriffderek

I think these layout games are really fun - as games.

But I've talked to hundreds of developers who have played them a lot, but haven't had enough real-world experience to really get how to use the concepts in their own projects. I'm sure it works for some people - like any gamified system. CSS Speedrun was pretty fun. But again, I've rarely used selectors like that in real life.

Nothing helps you learn CSS like finding a site that excites you - and rebuilding it (probably also making it more responsive too). I'd consider these to be distractions that will ultimiatly slow down the learning process for most people. (just my opinion of course)

Collapse
 
porzawk profile image
porzawk

Nice! Thanks for sharing.

Collapse
 
dailydevtips1 profile image
Chris Bongers

Glad you enjoyed this