Alternative
Amazon
Article
Writing
Art
AI
Angular
Photoshop
Premiere
Animal Crossing
Blog
Story
Android
Android Studio
Davinci Resolve
CSS
Clipchamp
ChatGPT
Crypto
DALL-E
Discord
Davinci Resolve
Davinci Resolve 18
Dream Studio
Express
Filmora
Flutter
PC Games
Git
GPT
GPT3
GPT4
GTA
GTA 6
Ghost Together
Ghost Together
HTML
iOS
iMovie
Illustrator
JavaScript
Mac
Mongo
Midjourney
Minecraft
Node.js
NBA 2k24
OSX
PHP
Palworld
Python
Playground AI
Roblox
React
Recipe (Cooking)
React Native
Semicolon.dev
Starfield PC Game
Snapchat
Steam
Stable Diffusion
SVG
Threads
Text To Image (AI)
VSCode
Vim
Web Development
Windows
WebGL

----

CSS Flex Train Station Challenge

css, flex, train, station, froggy, challenge, tutorial, cascading, style, sheets / like froggy, css, flex, train, station, challenge

Please share on social media or blogs! I spent a long time making this Flexbox challenge 🙂

(Help spread the word about this article)

CSS Flex Train Station Challenge 1

Learn CSS Flex by playing this CSS Flexbox Train Station game!

Park your flex train at provided ghost train station. Each train car must perfectly match position of the ghost train. You can accomplish this by changing flex properties and values in source code window below.

Details matter. Pay close attention to direction of each car in every challenge.

How To Play. To pass this challenge align your train with the ghost train by changing flex properties. They will be applied to the parent container to align flex elements represented by train cars. Click Park Button to test your code when you're ready.

Flex Challenge 1 - Align To Center

class = "flex no-select"

style = "height: 300px; overflow: hidden; position: relative; justify-content: flex-start">

Get your flex train wagons parked at shown location to complete the challenge and go to next level.

Solution Hint (Click to unfold)

Hint: All you have to do is add 2 new properties justify-content and align-items to parent container and assign each a value! But which ones and why? Not sure? Head over to our CSS Flex Definitive Guide (it will teach you everything you need to know to pass this challenge) and then come back here.

Flex Container Code

Park

Fun fact. The wheels inside each flex element are also flex elements.

CSS Flex Train Station Challenge 2

Learn CSS Flex by playing this CSS Flexbox Train Station game!

Park your flex train at provided ghost train station. Each train car must perfectly match position of the ghost train. You can accomplish this by changing flex properties and values in source code window below.

Details matter. Pay close attention to direction of each car in every challenge.

How To Play. To pass this challenge align your train with the ghost train by changing flex properties. They will be applied to the parent container to align flex elements represented by train cars. Click Park Button to test your code when you're ready.

Flex Challenge 2 - Align To End

class = "flex no-select"

style = "height: 300px; overflow: hidden; position: relative; justify-content: space-evenly">

Get your flex train wagons parked at shown location to complete the challenge and go to next level.

Solution Hint (Click to unfold)

Hint: All you have to do is add 2 new properties justify-content and align-items to parent container and assign each a value! But which ones and why? Not sure? Head over to our CSS Flex Definitive Guide (it will teach you everything you need to know to pass this challenge) and then come back here.

Flex Container Code

Register
Register
Post It
DM Coming Soon
f f