Specification Callout Rail
A colored rail and contextual unit label guide the eye across a product specification list.
A colored rail and contextual unit label guide the eye across a product specification list.
Live Demo
Hover over the element or use Tab to focus.
Source Code
Copy the HTML, CSS or JavaScript you need for your project.
<div class="tbx-1120" role="group" aria-label="Product specifications"><div tabindex="0" class="tbx-1120__row"><span>Weight</span><strong>920 <small>g</small></strong><em>Lightweight design</em></div><div tabindex="0" class="tbx-1120__row"><span>Thickness</span><strong>12 <small>mm</small></strong><em>Slim</em></div><div tabindex="0" class="tbx-1120__row"><span>Warranty</span><strong>3 <small>year</small></strong><em>Reliable support</em></div></div>
.tbx-1120{display:flex;flex-direction:column;width:min(286px,100%);background:#fff;border:1px solid #e0e8eb;border-radius:10px;overflow:hidden;font-family:system-ui,sans-serif}.tbx-1120__row{display:flex;align-items:center;gap:6px;position:relative;min-height:52px;padding:8px 13px;color:#395463;border-bottom:1px solid #e2ebee;transition:background .35s,padding .35s;cursor:default}.tbx-1120__row:last-child{border-bottom:0}.tbx-1120__row:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#d78d75;transform:scaleY(0);transition:transform .35s}.tbx-1120__row>span{font-size:11px;font-weight:700;flex:1}.tbx-1120__row strong{font-size:16px;white-space:nowrap}.tbx-1120__row strong small{font-size:10px;color:#8a9da5}.tbx-1120__row em{flex:none;width:0;opacity:0;overflow:hidden;font-style:normal;white-space:nowrap;font-size:9px;color:#b3694d;font-weight:750;transition:width .4s,opacity .3s;margin-left:0}
.tbx-1120__row:is(:hover,:focus-visible){background:#f8efe9;padding-left:20px}.tbx-1120__row:is(:hover,:focus-visible):before{transform:scaleY(1)}.tbx-1120__row:is(:hover,:focus-visible) em{opacity:1;width:69px;margin-left:5px}.tbx-1120__row:focus-visible{outline:2px solid #d78d75;outline-offset:-3px}@media(prefers-reduced-motion:reduce){.tbx-1120 *,.tbx-1120__row:before{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 specifications sections and ec sections.
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.