Border-radius-förhandsgranskning

Redigera CSS border-radius visuellt med reglage, förinställningar och live-förhandsgranskning — kopiera CSS med ett klick

border-radius: 20px;
Förinställningar
Top Left20px
Top Right20px
Bottom Right20px
Bottom Left20px
Färg
Bredd
Höjd

Border-radius-förhandsgranskning

Redigera CSS border-radius visuellt med reglage, förinställningar och live-förhandsgranskning — kopiera CSS med ett klick

Funktioner

  • Live preview of `border-radius` with per-corner controls (TL / TR / BR / BL)
  • Eight named presets (rounded, pill, leaf, blob, ticket, etc.)
  • Output as CSS shorthand: `border-radius: 10px 20px 5px 15px;` or single value if all corners match
  • Elliptical corners (the slash syntax `40px / 20px`) are not directly editable in this UI — set all four corners equal for symmetric output
  • Copy the CSS line to clipboard with one click

Så använder du

  1. Dra reglagen för att justera varje hörn.
  2. Eller klicka på en förinställning för snabba former.
  3. Kopiera den genererade CSS-egenskapen.

Tips och bästa praxis

  • Single value (e.g. `border-radius: 8px`) applies to all four corners — the most common case.
  • Four-value shorthand goes TL / TR / BR / BL (clockwise from top-left).
  • Elliptical corners (`Xpx Ypx / Xpx Ypx`) give a "leaf" or asymmetric shape — supported in CSS but not exposed in this UI.
  • For animated radius changes, transition `border-radius` directly — the property is animatable.
  • Mobile / iOS Safari: corner radius up to ~50% of the smaller side renders as a perfect circle (`border-radius: 50%`).

Vanliga frågor

Vad är border-radius?

CSS border-radius avrundar hörnen på ett element. Du kan ställa in alla hörn lika eller styra varje hörn individuellt.

När ska jag använda % istället för px?

Använd px för fast avrundning. Använd % för former relativa till elementets storlek — 50% skapar en cirkel på ett kvadratiskt element.