...

/

Problem: Feature Grid with Container Queries

Problem: Feature Grid with Container Queries

Try to use CSS Container Queries to build a responsive feature grid that adjusts column count based on container width—1, 2, or 4 columns.

Problem description

You have a <div class="features"> containing multiple <div class="feature"> items. Write CSS so the grid:

  • Shows 1 column when the container’s inline size is less than 500px ...