NavigationBreadcrumbs and Pagination
A breadcrumb trail and a numbered pager with previous, next and gaps, built from real links that fold to a compact pager on phones.
Ready-to-use HTML, CSS and JavaScript with a live preview. Copy the code or open any snippet in the playground.
7 snippets
NavigationA breadcrumb trail and a numbered pager with previous, next and gaps, built from real links that fold to a compact pager on phones.
NavigationA site header whose links fold behind a Menu button on phones and sit in a row from 40em, written without a library.
NavigationA tab list with three panels, arrow-key, Home and End support and roving tabindex, built with the XON tabs words.
LayoutA two-column article page whose contents list stays in view beside the text on wide screens and folds into a details block on phones.
NavigationTwo side panels, one from each edge, that open over the page as native modal dialogs and give focus back to their button when they close.
LayoutA header, a sidebar and a main area on CSS grid with a sticky header and one scrolling region; the sidebar folds behind a button on a narrow shell.
LayoutA site footer with a short brand note, four groups of links that wrap from four columns to two to one, and a bottom bar with a back-to-top link.
Try our online code playground to experiment with these snippets and create your own projects.