Toolvist

Generador de triángulos CSS

Crea triángulos solo con CSS, sin imágenes ni SVG: elige dirección, tamaño y color, y copia el truco del borde. Generador de triángulos CSS gratuito.

Generador de triángulos CSS gratuito

El Generador de triángulos produce triángulos solo con CSS usando la técnica clásica de bordes. Elige dirección, tamaño y color, luego copia el CSS.

Triangles are usually one element in a larger effect, alongside the CSS Clip-Path Maker and the CSS Border Radius Generator. The surrounding layout is easier to reason about with the CSS Flexbox Generator and CSS Grid Generator.

Cómo usar Triángulo CSS

  1. 1 Choose the direction the triangle should point.
  2. 2 Set the width and height, which control the size of the shape.
  3. 3 Pick the colour.
  4. 4 Copy the generated CSS.

Cómo usarlo

Elige hacia dónde debe apuntar el triángulo, define su tamaño y color, y copia el CSS generado. No requiere imágenes.

  • Cuatro direcciones: arriba, abajo, izquierda, derecha
  • Tamaño y color ajustables
  • Salida CSS pura sin dependencias

Preguntas frecuentes

How does a triangle made of borders work?

The trick is that a border meets its neighbours at a diagonal. If an element has zero width and height but a wide border on one side and transparent borders on the others, the visible border is a triangle. The transparent borders are what cut the shape out of what would otherwise be a trapezoid.

Why can a border triangle look slightly ragged?

Because the diagonals are anti-aliased by the browser, and at certain sizes the edges pick up a fringe. It is a rendering artefact rather than a mistake. If it is visible, using a slightly larger triangle and scaling it with a transform usually hides it.

Is a border triangle still the best approach?

For a simple arrow or marker, yes — it needs no extra markup and no image. For anything more complex, an inline SVG is cleaner, because it scales without artefacts, supports a border, and can be animated as a path. The border technique is a shortcut for exactly one shape.

Herramientas para desarrolladores relacionadas

Ver todo en Herramientas para desarrolladores →

También te puede interesar

Herramientas de otras categorías que suelen combinarse con Triángulo CSS:

Explorar el directorio completo →