--- url: "https://web.dev/blog/align-content-block" titulek: "The align-content property for block layouts is now part of Baseline | Blog | web.dev" h1: "The align-content property for block layouts is now part of Baseline Stay organized with collections Save and categorize content based on your preferences." popis: "The CSS align-content property for block layout is now part of Baseline Newly available." jazyk: "en" kanonicka: "https://web.dev/blog/align-content-block" drobecky: ["Blog", "The align-content property for block layouts is now part of Baseline"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 01:48:42" znaku: 1627 slov: 241 kodovani: "iso-8859-2" sha256: "0db5b68e0b4010324a11859ab27ed5e655d1b662b6aaee4a45b136db4b127c6f" --- The align-content property for block layouts is now part of Baseline Stay organized with collections Save and categorize content based on your preferences. Rachel Andrew Published: April 17, 2024 You can now use the `align-content` property from CSS Box Alignment on block and table layouts. This will allow block direction alignment without needing to create a flex or grid layout. Browser Support 123 123 125 17.4 The once impossible task of centering an item vertically was made easier by flexbox and grid, along with the `align-content` property. However, it did involve creating a flex or grid layout for no other reason than to do this alignment. The property was specified for block layout, and in the past few months all three major engines have shipped the feature. With `align-content` available for block layout, you can achieve vertical alignment without needing to create a flex or grid layout for the property to work. No additional properties are needed as the item remains a block item, the only change is to the alignment. The `align-content` property centers the heading vertically within a block container. Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates. Last updated 2024-04-17 UTC.