Section Numeral Backdrop
An oversized chapter number fades in behind a section headline.
An oversized chapter number fades in behind a section 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.
<a class="tbx-1195" href="#design-policy"><span class="tbx-1195__num" aria-hidden="true">07</span><span class="tbx-1195__top">OUR APPROACH</span><strong>Turning a purpose<br>into a clear design.</strong><span class="tbx-1195__line" aria-hidden="true"></span></a>
.tbx-1195{width:265px;max-width:100%;min-height:160px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:21px 16px;position:relative;text-decoration:none;color:#1d3340;background:#f4f1e9;overflow:hidden;font-family:system-ui;border:1px solid #e0dccc}.tbx-1195__num{font-size:124px;line-height:1;position:absolute;right:-6px;bottom:-22px;letter-spacing:-.12em;font-weight:900;color:#cadad0;opacity:.19;transform:translateY(26px) scale(.82);transition:opacity .4s,transform .48s}.tbx-1195__top{font-size:9px;letter-spacing:.2em;font-weight:800;color:#a67853;z-index:1}.tbx-1195 strong{z-index:1;line-height:1.5;font-size:19px;letter-spacing:.03em;margin-top:7px}.tbx-1195__line{height:3px;width:37px;background:#af684d;z-index:1;margin-top:12px;transition:width .5s}.tbx-1195:is(:hover,:focus-visible) .tbx-1195__num{opacity:.7;transform:translateY(0) scale(1)}.tbx-1195:is(:hover,:focus-visible) .tbx-1195__line{width:83px}.tbx-1195:focus-visible{outline:3px solid #ae6c4b;outline-offset:3px}
@media (prefers-reduced-motion: reduce) {.tbx-1195,.tbx-1195 *,.tbx-1195::before,.tbx-1195::after,.tbx-1195 *::before,.tbx-1195 *::after{transition-duration:.01ms!important;animation-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 heading sections and editorial layouts.
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.