Layout patterns
The patterns that arrange and divide a page: grids, columns, split screens, safe areas and responsive breakpoints.
7 elements in this category, each with a live preview and its name in English, Arabic and code.
<section> + <h1>Hero Section
The first big band of a page with the main headline, a short pitch and the key button.
display: grid + grid-column: span 2Bento Grid
One grid with tiles of mixed sizes packed together like a Japanese bento box.
columns: 3 / grid-template-rows: masonryMasonry Layout
Cards of different heights packed into columns with no row gaps, like Pinterest.
display: grid; grid-template-columns: 1fr 1frSplit Screen
A page divided in two halves: an image or message on one side, a form or content on the other.
role="separator" aria-valuenow + pointer eventsResizable Panes (Split View)
Two or more panels side by side with a divider you drag to resize them.
env(safe-area-inset-top) + viewport-fit=coverSafe Area (Insets)
The space you keep clear of the notch, status bar and home indicator on phones.
@media (min-width: …) / @containerResponsive Breakpoints
The widths at which a layout changes shape: phone, tablet, desktop.