LayoutApp Shell Layout
A 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.
Ready-to-use HTML, CSS and JavaScript with a live preview. Copy the code or open any snippet in the playground.
17 snippets · page 2 of 2
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.
Data DisplayA table with caption, scoped headers and right-aligned numbers that reflows into labelled stacked cards on a phone, in plain CSS.
MediaTwo stacked local SVG pictures with a range input that moves a divider between them, and the split read out as a percentage.
MediaA row of slides that snaps into place with CSS only and moves by touch, wheel, keyboard or jump links, with no script.
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.