Alignment in normal flow

align-content now also works on block containers, without flex or grid. It lets you centre a box’s content vertically with a single declaration.
  • normal (default): content starts at the top, as always.
  • center: centres all the content vertically inside the block.
  • end: places the content at the end of the block.
  • It only shows when the block is taller than its content, for example with height or min-height.

Example

The container is a normal block with a fixed height. Change align-content to move its content without turning it into flex or grid.

Select align-content:
ResultLive
html
css