1Select a triangle direction (up, down, left, right)
2Adjust the width and height with sliders
3Pick a color for the triangle
4Copy the generated CSS code
Frequently Asked Questions
By setting an element's width and height to 0 and applying thick borders on the sides, the browser renders the border corners as diagonal lines — forming a triangle shape.
CSS triangles are purely decorative. If the triangle conveys meaning, add accessible alternatives such as an aria-label or visible text nearby.