Generate pure CSS triangles using the border property hack.
Configuration
Width
100px
CSS Code
width: 0; height: 0; border-style: solid; border-width: 0 50px 100px 50px; border-color: transparent transparent #3b82f6 transparent;
The CSS Triangle Generator helps you create triangle shapes using pure CSS. This technique relies on the way browsers render borders when they meet at corners.
By setting an element's width and height to 0 and applying thick borders, you can create triangles. The transparent borders create the angled sides, while the colored border creates the visible triangle.
Explore more free utilities in CSS
CSS Unit Converter
Convert between Px, Rem, Em, and Percentage units.
Open
CSS Glassmorphism Generator
Generate CSS glassmorphism effects (frosted glass) visually.
Open
CSS Clip-path Generator
Generate CSS clip-path shapes visually.
Open
CSS Loader Generator
Generate CSS-only loading spinners and animations.
Open
CSS Cubic-Bezier Generator
Visually create CSS transition timing functions.
Open
Fancy Border Radius
Generate organic, blob-like shapes with CSS.
Open