CSS Triangle Generator
Generate pure CSS triangles and arrows with live preview using the border trick or clip-path.
关于此工具
Create pixel-perfect CSS-only triangles without any images or SVG. Choose from 8 directions: up, down, left, right, and all four diagonal corners. Control width, height, and color with instant live preview. Two techniques are generated side by side: the classic border-trick for maximum browser compatibility and the modern clip-path polygon approach. Also generates CSS arrows (border + rotation transform) for UI chevrons and pointers. Copy-paste ready CSS output for any approach.
使用方法
- 1 Select triangle direction (up, down, left, right, or diagonal corner).
- 2 Set the base width and height using the sliders.
- 3 Pick a fill color with the color picker.
- 4 Copy the border-trick CSS or the clip-path CSS — both are shown.
- 5 Use the Arrow section to generate a hollow arrow (chevron) CSS snippet.
常见问题
可视化构建CSS边框、轮廓和盒子阴影,带实时预览和即时代码输出。
Visually generate CSS clip-path shapes — polygon, circle, ellipse, inset — with draggable handles, preset shapes, and live preview.
Create decorative SVG wave dividers for websites with live preview and one-click download.