Pure CSS Layouts

CSS layouts arrange a page with flexbox, grid and positioning: holy grail pages, sidebars, masonry-style columns and responsive grids you can drop into a project.

13 free examples, most liked first. Click one to preview it and copy the code.

Layouts FAQ

Should I use flexbox or grid for layouts?

Use grid for two-dimensional page structure and flexbox for rows or columns of items. The layout examples here use each where it fits best.

How do I use these pure CSS layouts?

Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.

More pure CSS examples