Vertically centering WITHOUT flex or grid? It's so easy now!

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

ShortBeginnerUI1 min

About this video

A short CSS tutorial showing how to vertically centre content by setting align-content to center, without changing the element's display property.

What you’ll learn

  • Vertically centre content in CSS using align-content: center