Updated: 2026-07-24
100px
100px
π CSS Code
width: 0;\nheight: 0;\nborder-left: 50px solid transparent;\nborder-right: 50px solid transparent;\nborder-bottom: 100px solid #06b6d4;
π How It Works
- π½ Direction β 8 directions: up/down/left/right + 4 diagonals
- π Size β Adjust width and height freely
- π¨ Color β Pick any color
- π Copy β One-click CSS copy for your project
β FAQ
How does CSS triangle work?
It uses CSS borders. When width and height are 0, borders form 4 triangles. Setting colors and transparency shows only the desired direction.
Where can I use CSS triangles?
Commonly used for tooltip arrows, dropdown indicators, and decorative UI elements.