03 / GUIDES
CSS clip-path examples in real layouts
Use presets or edit 3–32 polygon points for avatars, directional images and slanted cards; compare full CSS with a clip-path declaration.
Content maintained by Toolars · Updated 2026-09-25
A hexagonal avatar
Choose the hexagon preset, switch to declaration output, and copy its clip-path rule into your own square image class. Set equal width and height plus object-fit: cover; the full example CSS uses a 4:3 demo box and should not be pasted unchanged onto the avatar. Check the face near every edge; changing the polygon does not move its subject.
A chevron for a directional image
Apply the chevron example to a decorative image beside a call to action. Compare the same percentage coordinates in a square box and a wide box: they scale with each axis, so the angle and silhouette can change. Check a narrow mobile layout as well as desktop. Keep essential text and the actual link outside the clipped decorative element.
A slanted card without clipped copy
Try the parallelogram on a decorative layer behind a card. Avoid applying it to the whole content container if that cuts off headings, focus outlines or buttons. A shape preview cannot establish keyboard accessibility. Tab through the finished component and make sure the focused control remains visible at both widths.
Copy, resize and verify
Start with the hexagon preset. Select its first point and set X to 30% and Y to 0%, then compare the silhouette. Add a point after the selected point or remove one within the 3–32 point limit. Drag points, enter coordinates from 0–100%, or use arrow keys (1%; Shift: 10%). Copy only the clip-path declaration to preserve your existing layout; full CSS includes demo styling. Test square and wide containers on desktop and mobile, keep text and focus outlines outside the clipped layer, and retain a rectangular fallback. Importing CSS and editing circle, ellipse or inset shapes are not supported.
Maintenance and verification
Toolars maintains this guide and its linked tool. Report a mismatch between the instructions and the current output so it can be reviewed together.
The downloadable example below is a synthetic test input, not a customer case study. Keep the input and settings unchanged when reproducing it; compare the downloaded file with the stated checks, not only the preview.
The checks cover this example only. They do not certify every file, browser or destination application. Recheck after tool changes and test your own output before sharing.
Report a content or tool issueTry a reproducible example
Toolars synthetic samples · updated 2026-09-13. These demonstrate the workflow, not real-photo quality, scanned-document quality or platform acceptance.
The CSS sample uses the hexagon preset. In CSS clip-path, choose hexagon, set the horizontal point to 24 and the vertical point to 50. Compare the two clip-path declarations in the download with the sample; color and whitespace may differ. Test wide and narrow elements: percentages follow the element box. Clipping does not itself make surrounding text wrap around the shape.
Open the toolOpen CSS Clip Path Generator
Use presets or edit 3–32 polygon points for avatars, directional images and slanted cards; compare full CSS with a clip-path declaration.