Perfect Fluid Typography With CQI CSS Unit - No more VW!

Web Bae on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI4 min

About this video

A short CSS tutorial showing how to set a container's container-type to inline-size and use CQI or CQW units for fluid text that scales with its container instead of the viewport. It is aimed at web developers and designers who already write custom CSS.

What you’ll learn

  • Set container-type to inline-size on a parent element
  • Size fluid text with CQI or CQW units instead of VW
  • Compare container query units with viewport units for responsive typography