8 Cardinal & Corner Directions
Generate top, right, bottom, left pointers as well as diagonal corner triangles for ribbons and callouts.
Build pure CSS triangles and pointer arrows in 8 directions. Switch between modern clip-path polygons and classic CSS borders, adjust dimensions, and copy ready-to-use code.
Compare clip-path polygon and zero-box CSS border triangles.
Presets
CSS Technique
Uses polygon() on a sized element so backgrounds and gradients work cleanly.
Copy the semantic HTML placeholder or CSS triangle rule.
<div class="triangle" aria-hidden="true"></div>.triangle { width: 160px; height: 120px; background: #14b8a6; clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
Pick Clip-Path or CSS Borders, then select any of the 8 cardinal or corner directions—or start from a quick preset.
Enter exact pixel dimensions for isosceles, equilateral, or right-angled triangles and preview against light or dark backgrounds.
Copy the generated CSS declarations and accessible HTML markup directly into tooltips, dropdowns, or badges.
Generate top, right, bottom, left pointers as well as diagonal corner triangles for ribbons and callouts.
Toggle between clip-path: polygon(...) and classic transparent CSS borders with a single click.
Start from Tooltip Arrow, Dropdown Caret, Play Icon, or Corner Ribbon presets, dial in exact pixel dimensions, and test contrast on a light or dark stage.
Choose clip-path when you want to apply gradients, background images, or responsive sizing cleanly. Choose CSS Borders when you need maximum legacy browser compatibility with a zero-dimension element.
When an element has width: 0 and height: 0, its four borders meet at diagonal angles. Making adjacent borders transparent and giving one border a solid color creates a crisp triangle.
Yes. In addition to the four cardinal directions (up, right, down, left), you can select any of the four corner directions (top-left, top-right, bottom-right, bottom-left) for ribbons and folded corners.
Decorative CSS triangles used for tooltips, carets, and ribbons do not convey semantic text to screen readers, so aria-hidden="true" keeps assistive technology output clean.
Yes—use Clip-Path mode. Because a clip-path: polygon() triangle keeps normal element dimensions, you can replace the solid background color with a linear-gradient(), radial-gradient(), or background-image. Classic CSS border triangles rely on border-color, which only supports solid colors.
Design polygon, circle, ellipse, and inset clip paths visually with live handles.
Shape rounded corners and 8-value elliptical curves visually with draggable handles.
Generate seeded organic CSS blobs with 8-value border-radius, gradients, and SVG export.