Online CSS Triangle Generator
Generate CSS for a triangle shape using borders. Pick direction and color.
.triangle {
width: 0;
height: 0;
border-style: solid;
border-width: 0 30px 60px 30px;
border-color: transparent transparent #374151 transparent;
}Frequently Asked Questions
- How does the triangle work?
- A zero-size box with thick borders shows only the edge of one side, forming a triangle.
- What directions can I choose?
- Up, down, left, or right. The triangle points in that direction.
Related Developer Tools
JSON Formatter
Format, validate, and beautify JSON. Minify or pretty-print with one click.
Base64 Decode
Decode Base64 strings to text. Encode text to Base64.
UUID Generator
Generate random UUIDs (v4) for unique identifiers. Copy with one click.
URL Encoder Decoder
Encode and decode URLs. Convert special characters for safe use in URLs.
Convert Color Hex to RGB
Convert hex color codes to RGB values (R, G, B).
Convert Color RGB to Hex
Convert RGB values (R, G, B) to hex color codes.