Download Label Split
A download button opens at the right to expose the file type and arrow.
A download button opens at the right to expose the file type and arrow.
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-1098" href="#download"><span class="tbx-1098__symbol" aria-hidden="true">↓</span><span class="tbx-1098__title"><strong>Download document</strong><small>Company Profile</small></span><span class="tbx-1098__aside" aria-hidden="true"><b>PDF</b><i>↗</i></span></a>
.tbx-1098{display:flex;align-items:center;width:min(286px,100%);height:78px;border:1px solid #abc2b7;border-radius:9px;overflow:hidden;color:#294940;background:#f5f9f5;text-decoration:none;font-family:system-ui,sans-serif;transition:border-color .3s,box-shadow .3s}
.tbx-1098__symbol{font-size:24px;font-weight:300;display:grid;place-items:center;width:51px;height:100%;color:#fff;background:#427d6a;flex:none;transition:background .3s}
.tbx-1098__title{min-width:0;flex:1;display:flex;flex-direction:column;padding:0 11px;gap:4px}.tbx-1098__title strong{font-size:12px;white-space:nowrap}.tbx-1098__title small{font-size:9px;color:#6c8c80;letter-spacing:.04em}
.tbx-1098__aside{width:28px;height:100%;background:#d8ebe1;display:flex;align-items:center;justify-content:center;gap:10px;flex:none;overflow:hidden;transition:width .36s cubic-bezier(.2,.8,.2,1),background .3s}.tbx-1098__aside b{font-size:10px;letter-spacing:.06em;opacity:0;transform:translateX(14px);transition:transform .32s,opacity .25s}.tbx-1098__aside i{font-size:18px;font-style:normal;transform:translateX(-23px);transition:transform .32s}
.tbx-1098:is(:hover,:focus-visible){border-color:#427d6a;box-shadow:0 5px 12px #2c79571b}.tbx-1098:is(:hover,:focus-visible) .tbx-1098__symbol{background:#315f4f}.tbx-1098:is(:hover,:focus-visible) .tbx-1098__aside{width:73px;background:#b9dfcf}.tbx-1098:is(:hover,:focus-visible) .tbx-1098__aside b,.tbx-1098:is(:hover,:focus-visible) .tbx-1098__aside i{opacity:1;transform:translateX(0)}
.tbx-1098:focus-visible{outline:3px solid #a5c5ac;outline-offset:3px}@media(prefers-reduced-motion:reduce){.tbx-1098,.tbx-1098 *{transition:none!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 download interfaces and resource pages.
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.