Tabular Chapter Nav
Chapter numbers and headings trade emphasis between horizontal rules in editorial navigation.
Chapter numbers and headings trade emphasis between horizontal rules in editorial navigation.
Live Demo
Hover over the element or use Tab to focus.
Source Code
Copy the HTML, CSS or JavaScript you need for your project.
<nav class="tbx-1190" aria-label="Chapter index"><a href="#chapter1"><span class="tbx-1190__idx">CH 01</span><span class="tbx-1190__name">Origins</span><span aria-hidden="true">↗</span></a><a href="#chapter2"><span class="tbx-1190__idx">CH 02</span><span class="tbx-1190__name">Process</span><span aria-hidden="true">↗</span></a><a href="#chapter3"><span class="tbx-1190__idx">CH 03</span><span class="tbx-1190__name">Results</span><span aria-hidden="true">↗</span></a></nav>
.tbx-1190{box-sizing:border-box;display:grid;width:271px;max-width:100%;padding:10px 15px;border-top:4px solid #222f44;background:#faf5ee;border-radius:4px;font-family:system-ui,sans-serif}.tbx-1190 a{position:relative;display:grid;grid-template-columns:55px 1fr 20px;gap:6px;align-items:center;min-height:43px;color:#263548;text-decoration:none;border-bottom:1px solid #d5cdc1;padding:6px 4px;transition:background .3s}.tbx-1190 a:last-child{border-bottom:0}.tbx-1190 a::before{content:"";height:100%;width:3px;position:absolute;top:0;left:-15px;background:#d97850;transform:scaleY(0);transform-origin:bottom;transition:transform .36s}.tbx-1190__idx{font-size:9px;letter-spacing:.08em;font-weight:850;color:#9b8876;transition:transform .3s}.tbx-1190__name{font:700 16px Georgia,serif;transition:transform .3s}.tbx-1190 a>span:last-child{font-size:17px;transform:translate(-5px,4px);opacity:0;transition:transform .3s,opacity .3s}.tbx-1190 a:is(:hover,:focus-visible){background:#f3e9d9}.tbx-1190 a:is(:hover,:focus-visible)::before{transform:scaleY(1)}.tbx-1190 a:is(:hover,:focus-visible) .tbx-1190__idx{transform:translateY(-3px)}.tbx-1190 a:is(:hover,:focus-visible) .tbx-1190__name{transform:translateX(6px)}.tbx-1190 a:is(:hover,:focus-visible)>span:last-child{opacity:1;transform:translate(0,0)}.tbx-1190 a:focus-visible{outline:2px solid #b95f40;outline-offset:2px}
@media (prefers-reduced-motion:reduce) {.tbx-1190,.tbx-1190 *,.tbx-1190::before,.tbx-1190::after,.tbx-1190 *::before,.tbx-1190 *::after{transition-duration:.01ms!important;animation-duration:.01ms!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 navigation menus 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.