--- url: "https://www.jakpsatweb.cz/css/priklady/vertical-center-flex.html" titulek: "Vertical centering using display: flex" h1: "Vertical centering using display: flex" popis: "" jazyk: "" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 10:25:22" znaku: 375 slov: 53 kodovani: "utf-8" sha256: "05e226d4e249acca3b4d5697777774e322411a310db9acc8b395622b2d4a907a" --- # Vertical centering using display: flex any text any height any content, for example generated from DB everything is vertically centered Uncomenting of justify-content: center in the source code you can get both vertical and horizontal centering. Please view source for details or read the [CSS vertical centering article](../css-vertical-center-solution.html) .