About Drone Dock
Drone Dock is Playhire’s classic CSS Flexbox and Grid game: land every drone by writing the hangar’s layout rules. Free, browser-based, built for interview prep.
How to play Drone Dock
The hangar is a container and every drone is an item. Each level marks the landing pads; write the layout rules for the hangar so every drone touches down on its pad. Levels start with single-line Flexbox alignment and move on to CSS Grid.
If you get stuck, solve the level in two steps: first get the drones in the right order and direction, then fix their alignment and spacing.
Alignment cheat sheet
In Flexbox, justify-content positions items along the main axis and align-items positions them on the cross axis. align-self overrides align-items for one item. In Grid, justify-items and align-items position items inside their cells, and place-items sets both at once.
place-items: center on a grid container is the shortest way to center one child in both directions. It is a good answer to know alongside the Flexbox version.
/* Flexbox */
.hangar { display: flex; justify-content: center; align-items: center; }
/* Grid: same result, one line */
.hangar { display: grid; place-items: center; }
Common mistakes
align-items has no visible effect when the container is only as tall as its items. Give the container a height (or let it stretch) before expecting vertical alignment to work. In Grid, remember that justify-content moves the whole grid inside the container, while justify-items moves items inside their own cells.
Why this matters in interviews
Frontend interviews often include a live layout task: a navbar with a logo on the left and links on the right, a centered modal, or a card grid. Each of these is one or two lines of Flexbox or Grid once alignment is automatic, which leaves you time to talk about responsiveness and accessibility.
What you practice
- flexbox alignment
- flex-direction
- gap
- CSS Grid
- place-items
- layout interviews
FAQ
- What is Drone Dock?
- Drone Dock is a free CSS Flexbox and Grid game on Playhire. You write real CSS so each drone lands on its pad, level by level, and earn XP toward the CSS Master certificate.
- Who is Drone Dock for?
- Beginners learning Flexbox, juniors prepping CSS layout interviews, and anyone who wants a CSS game instead of another static tutorial.
- Are Playhire CSS games free, and do I need to install anything?
- They are free and run in the browser, with nothing to install and no signup needed to start. Sign in only if you want XP, leaderboard rank and certificates.
- Is this a Flexbox Froggy alternative?
- Playhire’s Flexbox games teach the same CSS Flexbox skills (justify-content, align-items, flex-direction, gap, order, flex-grow) but with different themes: escape rooms, shooters, blueprints and drone docking — plus Grid, selectors and HTML labs on the CSS Master path.
More CSS games