...

/

Problem: Adaptive Testimonial Grid

Problem: Adaptive Testimonial Grid

Try to build a responsive testimonial grid using CSS Container Queries where both the layout and each card’s avatar, typography, and padding adapt fluidly across breakpoints.

Problem description

You have a <div class="testimonials"> container holding multiple <div class="testimonial"> cards, each with an <img class="avatar">, <h4 class="name">, and <p class="quote">. Requirements are as follows:

  • The .testimonials container declares container-type: inline-size and adjusts its grid columns via container queries:

    ...