Flexbox Patterns - 16 Layouts with Live Code | IconVault

16 production flexbox patterns: Holy Grail, sticky footer, card grids, navbars. Live previews, adjustable gaps, copyable HTML and CSS. Free.

All tools

Flexbox Patterns

16 layouts: Holy Grail, sticky footer, card grids

5 of 5 free uses left

Holy Grail

Header
Nav
Content
Aside
Footer

Classic header, three columns, footer. The flexbox rite of passage.

Code

<!-- Holy Grail -->
<header class="hg-header">Header</header>
<div class="hg-main">
  <nav class="hg-nav">Nav</nav>
  <main class="hg-content">Content</main>
  <aside class="hg-aside">Aside</aside>
</div>
<footer class="hg-footer">Footer</footer>

<style>
.holy-grail { display: flex; flex-direction: column; min-height: 100%; }
.hg-main { display: flex; flex: 1; }
.hg-nav, .hg-aside { flex: 0 0 120px; }
.hg-content { flex: 1; }
</style>

5 of 5 free copies left.

About this tool

IconVault's Flexbox Patterns is a visual cookbook of the layouts you build every week. Pick from 16 battle-tested patterns, from the classic Holy Grail and sticky footer to card grids, split heroes, media objects, pricing rows and chat layouts, and see each one render live in your browser.

Every pattern ships with copyable HTML and CSS you can drop straight into a project, plus an adjustable gap slider on the patterns where spacing matters. Everything is free and runs fully in your browser: no signup, no build step, no framework lock-in. Download all sixteen patterns as one CSS file when you are done.

Frequently asked questions

Popular searches

flexbox patternscss flexbox examplesflexbox layout patternsholy grail layout cssflexbox holy grailsticky footer flexboxcss sticky footerflexbox card gridflexbox navbarflexbox cheat sheetcss flexbox tutorialflexbox examples with codeflexbox layouts copy pastecommon flexbox patternsflexbox media objectflexbox split layoutflexbox pricing tableflexbox sidebar layoutflexbox form layoutflexbox toolbarflexbox avatar stackflexbox chat layoutflexbox equal columnsflexbox footer columnscss flexbox generatorflexbox template codelearn flexbox visuallyflexbox gapflexbox wrap cardsresponsive flexbox layoutsflexbox centeringcenter div flexboxflexbox space betweenflexbox align itemsflexbox justify contentflexbox flex wrapflexbox margin autoflexbox min width 0flexbox cheat sheet pdfcss layout patternsmodern css layoutsflexbox vs gridwhen to use flexboxflexbox interview questionsflexbox practiceflexbox playgroundflexbox code snippetsflexbox layout generatorcss flexbox tricksflexbox responsive navbarflexbox hero sectionflexbox dashboard layoutflexbox two column layoutflexbox three column layoutcss flex shorthand explainedflex 1 1 200pxflexbox best practicesflexbox real world examplescopy paste css layouts

More tools

Coming soon

CLI

Coming soon

Figma plugin

Coming soon

VS Code extension

Coming soon

Chrome extension

Coming soon

AI icon generator

Coming soon

Team workspaces

Coming soon

View all 10+ tools →