--- url: "https://web.dev/articles/building/a-crooked-grid-illusion" titulek: "Building a crooked grid illusion | Articles | web.dev" h1: "Building a crooked grid illusion Stay organized with collections Save and categorize content based on your preferences." popis: "A fun exploration of ways to recreate an optical illusion with CSS." jazyk: "en" kanonicka: "https://web.dev/articles/building/a-crooked-grid-illusion" drobecky: ["Articles", "Building a crooked grid illusion"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 22:28:09" znaku: 3499 slov: 511 kodovani: "iso-8859-2" sha256: "02308318522009fd7c3433d8b342df339bf5cb1d3d2d688726314f0d17bca801" --- Building a crooked grid illusion Stay organized with collections Save and categorize content based on your preferences. A fun exploration of ways to recreate an optical illusion with CSS. Adam Argyle In this post we're going to have a little bit of fun! There must be 100 ways to achieve this optical illusion, and I'm only going to share with you my thoughts, but encourage you to try your style. [Try the demo](https://gui-challenges.web.app/crooked-illusion/dist/) and [view the source](https://github.com/argyleink/gui-challenges). If you prefer video, here's a YouTube version of this post: Overview The name of this illusion is the [Cafe Wall Illusion](https://en.wikipedia.org/wiki/Caf%C3%A9_wall_illusion). There's no crooked lines to be found anywhere, but our eyes perceive slants. It may be hard to believe, but rebuilding it will definitely help you see through the illusion. Markup The HTML for this is straightforward rows and columns. The `
` is the container with `