...

/

Problem: Fluid Typography with CSS Container Queries

Problem: Fluid Typography with CSS Container Queries

Try to implement fluid typography using CSS Container Queries that adapts to the width of a parent container with fallbacks for unsupported browsers.

Problem description

Given a .card element with a heading (<h2>) and paragraph (<p>), write CSS rules to:

  1. Enable container query on .card by setting container-type: inline-size.

  2. Define fluid font sizes inside a ...