CSS Triangle Generator
Choose direction and size to get the CSS border code for a pure CSS triangle.
50px
CSS
Summary
Choose direction and size to get the CSS border code for a pure CSS triangle.
How it works
- Select triangle direction (up, down, left, right)
- Set width, height, and color
- Click Generate
- Copy the CSS output
Use cases
- Tooltip pointer arrows
- Decorative section dividers
- Navigation arrow indicators
Frequently Asked Questions
Last updated: 2026-07-01 ·
Reviewed by Nham Vu