Pure CSS Hexagons

CSS hexagons are six-sided shapes and honeycomb grids drawn with clip-path or pseudo-elements, with no images or SVG required.

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

Hexagons FAQ

How do I draw a hexagon in CSS?

Apply a clip-path polygon with six points to a square element, or build it from rotated pseudo-elements. The hexagon examples here show both.

How do I use these pure CSS hexagons?

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