TipsBlocks Web Technique Library

PRACTICAL WEB TIP

← Back to library

Drop Cap Definition

An oversized initial reveals a concise definition in the whitespace beside a headline.

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
<div tabindex="0" class="tbx-1291" role="group" aria-label="Sustainable design — making materials last longer"><span class="tbx-1291__initial">S</span><div class="tbx-1291__copy"><span>EDITORIAL / 01</span><strong>ustainable<br>design</strong><small>Useful, lasting, considered.</small></div><span class="tbx-1291__hint">DESIGN FOR LONGEVITY ↗</span></div>
CSS
*{box-sizing:border-box}
.tbx-1291{width:295px;max-width:100%;min-height:152px;position:relative;display:flex;align-items:center;gap:1px;padding:17px 12px 22px;border-bottom:1px solid #8d9d95;background:#f7f6ef;color:#2a3b33;overflow:hidden;font-family:Georgia,serif;cursor:default}.tbx-1291__initial{font-size:95px;font-weight:bold;line-height:.85;color:#3d715f;transition:transform .45s,color .45s;transform-origin:bottom left}.tbx-1291__copy{display:flex;flex-direction:column;gap:5px}.tbx-1291__copy span{font:700 9px system-ui,sans-serif;letter-spacing:.19em;color:#8c968a}.tbx-1291__copy strong{font-size:27px;line-height:.93;font-weight:600}.tbx-1291__copy small{font:italic 11px Georgia,serif;color:#7c857d}.tbx-1291__hint{position:absolute;bottom:5px;right:12px;font:700 9px system-ui,sans-serif;letter-spacing:.08em;color:#4d7461;transform:translateY(16px);opacity:0;transition:transform .36s,opacity .36s}.tbx-1291:hover .tbx-1291__initial,.tbx-1291:focus-visible .tbx-1291__initial{transform:scale(1.16) rotate(-7deg);color:#c5864b}.tbx-1291:hover .tbx-1291__hint,.tbx-1291:focus-visible .tbx-1291__hint{transform:translateY(0);opacity:1}.tbx-1291:focus-visible{outline:3px solid #60987e;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.tbx-1291 *,.tbx-1291::before,.tbx-1291::after{animation:none!important;transition:none!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 editorial layouts and articles.

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.