On this page
  1. align-items
  2. Syntax & Overview
  3. Notes & Best Practices
  4. Example

align-items

Prev: `justify-content` | Up: layout | Next: `grid-template-columns`
Rel: layout, Display & Layout Guide
Ref: MDN Web Docs — align-items
Tags: #public #web #css #properties #layout #tier/core


Syntax & Overview

align-items: stretch | center | start | end | baseline;

Aligns flex/grid children along the cross/block axis.

Notes & Best Practices

Example

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

Linked from

Related notes