Runs on your device. Nothing you add is uploaded.
Preview
CSS
.example {
width: 0;
height: 0;
border-left: 52px solid transparent;
border-right: 52px solid transparent;
border-bottom: 80px solid #FF5A1F;
}How to use CSS Triangle Generator
- Adjust the controls to match your design.
- Review the preview while you edit.
- Copy the CSS into your stylesheet.
Questions
Two transparent borders make the angled edges, while a third border supplies the triangle color.
Replace .example with your own selector, then place the rule in your stylesheet.
How this works
Builds a local preview and a standard CSS rule from the selected settings.
Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. What you typed and your settings are kept in this browser so the tool opens the way you left it, except passwords, keys and tokens, which are never saved. Privacy
Related tools
More in Color & designCSS Box Shadow GeneratorPreview a CSS box shadow with adjustable offsets, blur, spread, color, and opacity.CSS Border Radius GeneratorAdjust each corner of a shape and copy the CSS border-radius declaration.Interactive Color WheelExplore complementary, analogous, triadic, and tetradic color harmonies and copy their CSS values.Color PickerPick an sRGB color and copy its hex, RGB, or HSL values.Color Palette GeneratorBuild a palette of related colors from a base color and a color scheme.Paper Size ReferenceLook up ISO A and B paper sizes and common North American formats in inches and millimeters.