A "wall of love" testimonial section in pure CSS: short customer quotes with star ratings and round avatar photos, arranged in a masonry layout so cards of different heights pack together without gaps. Use it on landing pages, pricing pages and product launches to show social proof at a glance. No JavaScript is needed.
How it works
The root section.tmw-wall contains a centered .tmw-head (eyebrow, title and rating summary), the ul.tmw-grid of quotes and a .tmw-more call-to-action link. The masonry effect comes from CSS multi-column layout: .tmw-grid uses columns: var(--tmw-cols), and each li.tmw-item has break-inside: avoid, so a card is never split across columns. Spacing between cards is padding on the item rather than margin, which keeps the column tops aligned.
Every quote is a figure.tmw-card with three parts: .tmw-stars (five inline SVG stars, with .tmw-star--off for empty ones), a blockquote.tmw-quote and a figcaption.tmw-person holding the .tmw-avatar image, .tmw-name and .tmw-role. Two modifiers add rhythm to the wall: .tmw-card--accent is a violet gradient card with white text for the strongest quote, and .tmw-card--sun is a yellow card. Cards lift and tilt slightly on hover.
The avatar photos come from Unsplash; replace them with real photos of your customers (with their permission) and keep the width and height attributes.
Customization
--tmw-colson.tmw-wall: the column count. It is1on phones,2from 600px,3from 900px and4from 1080px; edit the media queries to change the steps.--tmw-gap: horizontal and vertical space between cards.--tmw-accent: eyebrow, button hover and focus color, and the start of the.tmw-card--accentgradient.--tmw-sun: background of.tmw-card--sun;--tmw-starsets the star color per card.--tmw-bg-1and--tmw-bg-2: the two stops of the section background gradient.--tmw-radius: corner radius of all cards.- Add
tmw-star--offto the last star spans and update thearia-labelon.tmw-starsto show a 4-star or 3-star review.
Use cases
- SaaS landing pages: a wall of love shows many customer quotes in a masonry layout
- Product pages: star ratings and avatar photos make testimonials feel real
- Agency sites: highlighted quote cards draw attention to the strongest feedback
- Pricing pages: customer quotes and star ratings sit close to the sign-up decision to build trust
Accessibility
Each testimonial uses figure, blockquote and figcaption, so the quote and its author are associated semantically. The star row is a single role="img" element with an aria-label such as "4 out of 5 stars", which replaces five separate graphics for screen readers. Avatars have descriptive alt text and are lazy loaded. The call-to-action link has a visible :focus-visible outline, text contrast meets WCAG AA on every card variant, and hover transitions are disabled with prefers-reduced-motion: reduce.
Usage notes
Multi-column layout fills columns top to bottom, so reading order goes down the first column before the second. Put your strongest quotes first. Mix short and long quotes for a lively wall.