Skip to main content
CSS Tip

CSS Grid of Random Shapes (Mosaic Style)

Tired of classic and boring CSS grids with rectangles? Let's random() the shapes and create mosaic-style grids.

A CSS-only grid with random shapes

Cool demos powered by modern CSS features. Refresh to get a new layout!

2x1 Grid #

See the Pen 2x1 mosaic grid by Temani Afif (@t_afif) on CodePen.

2x2 Grid #

See the Pen 2x2 mosaic grid by Temani Afif (@t_afif) on CodePen.

2x3 Grid #

See the Pen 2x3 mosaic grid by Temani Afif (@t_afif) on CodePen.

3x3 Grid #

See the Pen 3x3 mosaic grid by Temani Afif (@t_afif) on CodePen.


More CSS Tips