ToolPal

Generador de triángulos CSS

Genera triángulos puramente en CSS usando el truco de los bordes. Elige dirección, tamaño y color, y copia el CSS al instante.

Los triángulos CSS usan el truco de los bordes: un elemento de tamaño cero con bordes transparentes en tres lados y un color sólido en el cuarto produce un triángulo. No se necesitan SVG ni imágenes.

Cómo usar

Genera triángulos puramente en CSS usando el truco de los bordes. Elige dirección, tamaño y color, y copia el CSS al instante.

  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.

Características

  • 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

Preguntas frecuentes

Más información