TipsBlocks Web Technique Library

PRACTICAL WEB TIP

← Back to library

Quotation Margin Echo

Large quotation marks emerge behind a testimonial as the text arrangement settles.

Live Demo

Hover over the element or use Tab to focus.

Source Code

Copy the HTML, CSS or JavaScript you need for your project.

HTML
<a href="#reviews" class="tbx-1152"><span class="tbx-1152__quote" aria-hidden="true">“</span><span class="tbx-1152__body"><small>CLIENT VOICE / 04</small><strong>Usability has<span>improved dramatically.</span></strong><em>Customer story ↗</em></span></a>
CSS
.tbx-1152{box-sizing:border-box;position:relative;display:block;width:min(300px,100%);padding:20px 20px 18px 24px;min-height:170px;border-radius:5px;background:#efe8f2;border-left:4px solid #aa8cba;text-decoration:none;color:#46394c;overflow:hidden;font-family:system-ui,sans-serif;transition:border-color .35s,background .35s}
.tbx-1152__quote{position:absolute;right:-8px;top:-29px;font-family:Georgia,serif;font-size:170px;line-height:1;color:#d3c4db;opacity:.28;transform:scale(.7) rotate(-15deg);transform-origin:top right;transition:transform .55s,opacity .55s}
.tbx-1152__body{position:relative;display:grid;gap:14px;z-index:1}.tbx-1152 small{font-size:10px;letter-spacing:.13em;font-weight:800;color:#775a83}.tbx-1152 strong{font-size:18px;line-height:1.5}.tbx-1152 strong span{display:block}.tbx-1152 em{font-style:normal;font-size:11px;font-weight:650;color:#70537f;transition:transform .42s;justify-self:start}
.tbx-1152:is(:hover,:focus-visible){border-color:#715389;background:#f1e5f6}.tbx-1152:is(:hover,:focus-visible) .tbx-1152__quote{opacity:.8;transform:scale(1) rotate(0)}.tbx-1152:is(:hover,:focus-visible) em{transform:translateX(8px)}
.tbx-1152:focus-visible{outline:3px solid #aa8cba;outline-offset:4px}
@media (prefers-reduced-motion: reduce) { .tbx-1152, .tbx-1152 *, .tbx-1152::before, .tbx-1152::after, .tbx-1152 *::before, .tbx-1152 *::after { animation-duration:.01ms !important;transition-duration:.01ms !important;scroll-behavior:auto !important } }

How to Use

Insert the HTML and add the CSS to your stylesheet. Adjust colors and sizes and avoid class conflicts.

Use Case

Useful for testimonials sections and company websites.

Technical Notes

Keep controls usable on touch devices. Test keyboard focus and reduced-motion preferences.

Mobile:Ensure the interactive content remains accessible without hover on touch devices.

Browser:Uses modern CSS. Check behavior in the browsers you support.

Reduced Motion:Check that prefers-reduced-motion is respected.