CSS align-items Property Explained
What the CSS align-items property does, with an example.
Published November 4, 2026
The CSS align-items property aligns flex or grid items along the cross axis of their container.
Key points
- Check browser compatibility on a resource like caniuse.com if targeting older browsers
Example
align-items: center;