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.

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
- Confetti Buttons using random() Create a fancy button surrounded by confetti.
- A Spring Connector Using Anchor Positioning and border-shape Another fancy connector using modern CSS features.