--- url: "https://web.dev/articles/codelab-centering-in-css" titulek: "Codelab: Centering in CSS | Articles | web.dev" h1: "Codelab: Centering in CSS Stay organized with collections Save and categorize content based on your preferences." popis: "Learn 5 different centering techniques with CSS." jazyk: "en" kanonicka: "https://web.dev/articles/codelab-centering-in-css" drobecky: ["Articles", "Codelab: Centering in CSS"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 23:13:10" znaku: 1695 slov: 258 kodovani: "iso-8859-2" sha256: "bde69b1674669d8951b94c7ae51b615adf31b993352cdab92600b6aed1933c19" --- Codelab: Centering in CSS Stay organized with collections Save and categorize content based on your preferences. Adam Argyle This codelab sets you up to share and showcase your favorite way of centering in CSS. Check out my blog post [Centering in CSS](/articles/centering-in-css) to learn about 5 of my favorite ways to center in CSS. Or watch this video! Setup Click **Remix to Edit** to make the project editable. Open `app/index.html` At `line 23`, replace `/* your centering CSS here /*` with your CSS (optional) Name your centering technique and replace the text in the `