Skip to content

Testimonial with Large Portrait Photo

Featured Tailwind CSS testimonial with a large customer portrait, offset frame, serif quote, star rating and result metrics.

Also known as: testimonial with photo, customer quote section, featured testimonial, single review section

Testimonial with Large Portrait Photo live demo

Open in new tab

Tailwind CSS code (HTML)

A featured testimonial section built with Tailwind CSS that pairs one customer quote with a large portrait photo. It suits landing pages, case-study teasers and pricing pages where a single strong endorsement works better than a grid of short reviews.

How it works

The root is section.tlp-testimonial, labelled by the #tlp-heading eyebrow. Inside, a max-w-5xl grid stacks the portrait above the quote on phones and switches to a 12-column layout at the lg breakpoint: the portrait takes lg:col-span-5, the text takes lg:col-span-7.

The portrait column has three layers. An aria-hidden block with bg-rose-200 and translate-x-4 translate-y-4 sits behind the photo as an offset frame. The img uses aspect-[4/5] with object-cover, so any portrait crops cleanly. A small white card pinned with absolute -bottom-5 left-5 shows a five-star rating and a "Verified customer" label.

The text column holds a figure with a decorative quote-mark SVG, a blockquote in font-serif that scales from text-2xl to lg:text-[2.1rem], and a figcaption with the name, role and company. Below the figure, a dl shows two result metrics separated by a border-rose-200 rule. The section is static HTML and needs no JavaScript or custom CSS.

Customization

  • bg-rose-50, bg-rose-200, text-rose-700 and border-rose-200: replace rose with sky, emerald or amber to recolor the background, the offset frame, the eyebrow and the metric numbers in one pass.
  • translate-x-4 translate-y-4 on the frame block: use -translate-x-4 to move the frame to the left side, or delete the block for a plain photo.
  • aspect-[4/5] on the img: switch to aspect-square or aspect-[3/4] for a shorter or taller portrait.
  • lg:col-span-5 and lg:col-span-7: change to lg:col-span-6 on both for an even split, or add lg:order-last to the portrait column to place the photo on the right.
  • font-serif on the quote paragraph: remove it to use the sans-serif body font for a more neutral look.
  • The dl metrics grid: delete it entirely or change grid-cols-2 to grid-cols-3 and add a third div with a dt/dd pair.
  • rounded-[2rem] on the image and frame: lower to rounded-xl for a sharper, more corporate shape.

Use cases

  • Landing pages: one strong customer quote sits beside a large portrait with a verified rating
  • Case-study teasers: two result metrics under the quote back up the endorsement
  • Pricing pages: a featured testimonial builds trust near the plans
  • Service business sites: an offset frame, star rating and serif quote give the review a polished look

Accessibility

The section is a landmark labelled by aria-labelledby="tlp-heading". The quote uses semantic figure, blockquote and figcaption, so assistive technology links the statement to the person. The portrait has a descriptive alt, explicit width and height to prevent layout shift, loading="lazy" and decoding="async". The star row is exposed as one image with role="img" and aria-label="Rated 5 out of 5", while each star SVG, the quote mark and the offset frame are aria-hidden. Metrics use a description list, so each number is read with its label. Stone and rose text on the light rose background meets WCAG AA contrast. There is no motion and no interactive element, so there is nothing to trap or animate.

Usage notes

The photo comes from Unsplash and is only a placeholder; replace it with a real, approved photo of your customer.

Testimonial with Large Portrait Photo at a glance

Framework
Tailwind CSS
Code
HTML
JavaScript
Only Tailwind CSS's own script
Dependencies
Tailwind CSS
Layout
Responsive, works on mobile
Category
Testimonials
License
Free for personal and commercial use

Questions about this template

Can I use the Testimonial with Large Portrait Photo code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Tailwind CSS from a CDN (the links are under Requirements). Paste the HTML where the component should appear. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. Only Tailwind CSS's own JavaScript is used, and the download already includes it.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>

The Tailwind browser build is for prototyping. In production, compile Tailwind with its CLI or your bundler.

Testimonial with Large Portrait Photo – Tailwind CSS testimonials component screenshot
Testimonial with Large Portrait Photo · Tailwind CSS Testimonials

More Testimonials

Single Testimonial with Large Quote – WordPress testimonials preview

Single Testimonial with Large Quote

A single testimonial for the block editor with a large centered customer quote, round portrait, name, role and company wordmark on a deep navy background.

Testimonial Cards with Avatars – WordPress testimonials preview

Testimonial Cards with Avatars

Testimonial cards for the block editor: three customer reviews with five-star ratings, round portrait avatars, names and roles on a warm light background.

Customer Testimonials Section for Shopify – Shopify testimonials preview

Customer Testimonials Section for Shopify

A Shopify section for customer quotes with star ratings, avatars and linked products, shown as a grid or a scrolling row with previous and next buttons.

Scroll-Snap Testimonial Slider – Pure CSS testimonials preview

Scroll-Snap Testimonial Slider

Horizontally scrolling testimonial cards using CSS scroll snap, with star ratings, avatars and accessible previous and next buttons.

Testimonial Carousel – Bootstrap 5 testimonials preview

Testimonial Carousel

Bootstrap 5 testimonial carousel with serif quote cards, pill indicators, arrow buttons and an accessible pause control.

Testimonials Grid – Tailwind CSS testimonials preview

Testimonials Grid

Masonry-style Tailwind CSS testimonials grid with star ratings, initial avatars and an accessible Show more button.