ToolPal

CSS-Dreieck-Generator

Erzeuge reine CSS-Dreiecke mit dem Border-Trick. Wähle Richtung, Größe und Farbe – kopiere das CSS sofort.

CSS-Dreiecke nutzen den Border-Trick: Ein Element mit Größe Null, drei transparenten Rändern und einer Vollfarbe auf der vierten Seite ergibt ein Dreieck. Keine SVGs oder Bilder erforderlich.

Anleitung

Erzeuge reine CSS-Dreiecke mit dem Border-Trick. Wähle Richtung, Größe und Farbe – kopiere das CSS sofort.

  1. 1Pick the triangle direction — up, down, left, right, or a corner direction for right triangles.
  2. 2Drag the width and height sliders to set the triangle's size in pixels.
  3. 3Choose a color using the color picker or by typing a hex value.
  4. 4Watch the live preview update on a checkered background so transparent borders are visible.
  5. 5Click 'Copy' to copy the generated CSS class to your clipboard and paste it into your stylesheet.

Funktionen

  • Eight directions — four cardinal (up/down/left/right) and four corner-anchored right triangles
  • Live preview on checkered background — confirms which borders are transparent and which are colored
  • Independent width and height — sliders go up to 400px for both dimensions
  • Pure-CSS output — no SVG, no images, no JavaScript runtime; just borders on a zero-size element
  • Color picker plus hex input — choose visually or paste an exact brand color

Häufig gestellte Fragen

Mehr erfahren