A worked example, rendered from real sample data. Sign in to run the tool on your own input.
hexagon.element {
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
/* Shape: hexagon */
/* clip-path is supported in every current browser; the -webkit- prefix only matters for Safari below 14. */
/* Clipped areas stop receiving pointer events, so keep interactive content inside the shape. */
Generate CSS clip-path polygon values. Part of the DevTools Surf developer suite. Browse more tools in the Web / Frontend collection.