RevealTheme logo

CSS-Border-Radius-Generator

Erstellen Sie komplexe border-radius-Werte in CSS auf visuelle Weise. Unabhängige Steuerung jeder Ecke.

border-radius: 20px 20px 20px 20px;

So verwenden Sie dieses Tool

  1. 1

    Drag the TL, TR, BR, and BL sliders to set each corner radius in pixels (0 to 100).

  2. 2

    Watch the indigo preview box update live as you change each corner.

  3. 3

    Read the generated border-radius declaration in the code box below the sliders.

  4. 4

    Click Copy CSS to put the declaration on your clipboard, then paste it into your stylesheet.

Was ist der CSS-Border-Radius-Generator?

Die CSS-Eigenschaft border-radius akzeptiert bis zu vier Werte, einen pro Ecke, in der Reihenfolge oben links, oben rechts, unten rechts und unten links. Kombinieren Sie unterschiedliche Radien für organische tropfenförmige Formen, asymmetrische Karten oder Sprechblasen-Stile. Mit diesem Tool stellen Sie jede Ecke per Schieberegler ein und sehen das Ergebnis in Echtzeit.

Häufige Anwendungsfälle

  • Rounding the corners of a card or panel component and copying the exact pixel value into a stylesheet.

  • Creating an asymmetric shape, like a chat bubble, by giving one corner a small radius and the others a larger one.

  • Prototyping a pill or capsule button by pushing all four sliders toward their maximum.

  • Matching a design spec that calls for different radii on the top corners versus the bottom corners.

  • Quickly testing how a corner radius looks at different pixel sizes before committing a value to a design system.

  • Teaching or demonstrating how the four-value border-radius shorthand maps to each corner.

Häufig gestellte Fragen

Was ist mit elliptischen Radien?
border-radius unterstützt auch zwei durch / getrennte Werte pro Ecke und erzeugt so Ellipsen statt Kreise. Für die grundlegende Verwendung genügt ein einzelner Wert pro Ecke.

Verwandte Tools