Skip to content

Rated review grid in HTML and CSS

Three customer reviews as cards, with star rating and customer tenure.

Here is an excerpt of this component's code in HTML and CSS. The full code is free for members, ready to copy into your project.

This component also comes in

Open in a new tab

The code in HTML and CSS

index.html
<!doctype html>
<html lang="fr">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Grille d'avis notés</title>
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <main class="demo">
      <ul class="reviews">
        <li>
style.css
:root {
  --rev-bg: #ffffff;
  --rev-line: #f3d3df;
  --rev-text: #3b0a1e;
  --rev-muted: #7a3a54;
  --rev-star: #b4234f;
  --demo-bg: #fdf4f7;
  --demo-text: #3b0a1e;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {

Free component: copy it freely, including for commercial projects.

Testimonials components in HTML and CSS
  • A customer reviews section with average rating and star distribution; each bar is a button that filters the reviews with that rating.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A reviews section for local shops: average star rating out of 5, a star breakdown that animates into view and the three latest reviews signed with a first name and a town.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A CSS-drawn video poster with a play button, the testimonial's key quote, its author, and the timestamped transcript in a collapsible panel.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A row of client references as wordmarks, followed by a representative quote.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A single highlighted quote, with the name and role of its author.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component