How to Create Perfectly Centered Text With Flexbox

Envato on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI8 min

About this video

This lesson shows how Flexbox can vertically centre content whose height varies, a problem that horizontal centring does not cover. It is part of the course 6 Flexbox Projects for Web Designers.

What you’ll learn

  • Vertically centre variable-height content using Flexbox
  • Apply Flexbox centring to layouts that change size