CSS Triangle Generator

Generate bounded border-based triangle CSS source.

Scope: Output is CSS source for a zero-size border triangle and is never rendered as markup.

Workbench

Inputs stay on this page.

How to use CSS Triangle Generator

  1. Fill in the fields:

    • Direction: Up, Right, Down, Left.
    • Triangle size (px): 1 to 1,000.
    • Triangle colour.
  2. Press “Generate triangle CSS”.

  3. Copy the css source, or download it as triangle.css.