Div Stack: One-Tap Stacking Game

Stack sliding blocks as high as you can. Tap, click or press Space to drop each block; whatever hangs over the edge is cut off, so every miss makes the next block narrower. Land it perfectly and it keeps its full width. A free browser game, no download or sign-up.

Height0 Perfect0 Best0

Tap the game, click it or press Space to drop the block.

How high can you stack?

Drop each block on the one below. Overhangs are trimmed; three perfect drops in a row make the block grow again.

How to play Div Stack

  1. Press Start game. A block slides left and right above the tower.
  2. Tap the game area, click it or press Space (or Enter) to drop the block.
  3. Only the part that lands on the block below stays. The overhang falls away, so the tower gets narrower with every imprecise drop.
  4. Miss the tower completely and the game is over. Blocks speed up as the tower grows.

Scoring and perfect drops

DropEffect
Lands on the tower+1 height; the block keeps only the overlapping part
Perfect (within 4 pixels)Snaps into place with no width lost, perfect streak +1
Three or more perfects in a rowThe block grows a little wider again, up to the starting width
Misses the towerGame over

Tips for a taller tower

Why the blocks are called divs

Every web page is built from boxes. In HTML the general-purpose box is the <div> element, and CSS stacks them, nests them and decides what happens to content that does not fit. In this game that rule is overflow: hidden taken literally: anything outside the box below is clipped off. If your own layouts need tidying, the HTML Formatter and CSS Formatter make deeply nested markup easy to read.

Frequently asked questions

Is Div Stack free to play?

Yes. It runs in your browser with no account, no download and no in-game purchases.

Does it work on phones and tablets?

Yes. It was designed for one-thumb play: tap anywhere on the game area to drop a block.

Where is my best score stored?

Only in this browser’s local storage. It is not sent anywhere, and clearing your site data resets it.

Can I turn the sound off?

Yes. Use the Sound button above the game; the choice is remembered in this browser.

Related tools