# Centered Testimonial

> A centered testimonial with the avatar sitting on the top edge, a large quote and name with company below.

- Category: [CSS Cards](https://copy-css.com/category/cards)
- Tags: testimonial, quote, avatar, centered, landing page, customer
- Live preview: https://copy-css.com/snippets/centered-testimonial-card
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<figure class="tcenter">
  <span class="tcenter-avatar" aria-hidden="true">EM</span>
  <blockquote>We replaced three internal tools with this, and nobody misses them.</blockquote>
  <figcaption>
    <strong>Elena Marsh</strong>
    <span>COO, Brightpath</span>
  </figcaption>
</figure>
```

## CSS

```css
.tcenter {
  width: 250px;
  margin: 30px 0 0;
  padding: 38px 20px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px -16px rgba(6, 78, 59, 0.4);
  color: #064e3b;
  font-family: system-ui, sans-serif;
  text-align: center;
}

.tcenter-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -66px auto 12px;
  border: 4px solid #ecfdf5;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-weight: 700;
}

.tcenter blockquote {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.tcenter blockquote::before {
  content: "“";
}

.tcenter blockquote::after {
  content: "”";
}

.tcenter figcaption {
  display: grid;
  margin-top: 12px;
  font-size: 13px;
}

.tcenter figcaption span {
  color: #6b8f80;
}
```

## Notes

- This CSS Centered Testimonial is 49 lines of pure CSS (0.8 KB) with no JavaScript and no dependencies. It uses box shadows and CSS Grid.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
