--- title: border-radius slug: Web/CSS/border-radius tags: - CSS - CSS Referenz translation_of: Web/CSS/border-radius ---
{{CSSRef}}
Die Eigenschaft border-radius kann verwendet werden, um Rahmen mit abgerundeten Ecken zu versehen. Der Radius wird auch auf Hintergründe und Schatteneffekte angewendet, selbst wenn das Element über keinen Rahmen verfügt.
border-radius ist die Kurzform für die für Eigenschaften {{ Cssxref("border-top-left-radius") }}, {{ Cssxref("border-top-right-radius") }}, {{ Cssxref("border-bottom-right-radius") }} und {{ Cssxref("border-bottom-left-radius") }}.
{{cssinfo}}
border-radius: {{csssyntax("border-radius")}}
bzw.
border-radius: [ <Länge> | <Prozentzahl> ]{1,4}
[ / [ <Länge> | <Prozentzahl> ]{1,4} ]?
Es werden bis zu vier Angaben akzeptiert und nach einem Slash ("/") können vier weitere Angaben folgen.
Beispiel zur Slash-Notation:
-moz-border-radius: 1em/5em;
border-radius: 1em/5em;
/* ist gleichbedeutend zu: */
-moz-border-radius-topleft: 1em 5em;
-moz-border-radius-topright: 1em 5em;
-moz-border-radius-bottomright: 1em 5em;
-moz-border-radius-bottomleft: 1em 5em;
border-top-left-radius: 1em 5em;
border-top-right-radius: 1em 5em;
border-bottom-right-radius: 1em 5em;
border-bottom-left-radius: 1em 5em;
-moz-border-radius: 4px 3px 6px / 2px 4px;
border-radius: 4px 3px 6px / 2px 4px;
/* ist gleichbedeutend zu: */
-moz-border-radius-topleft: 4px 2px;
-moz-border-radius-topright: 3px 4px;
-moz-border-radius-bottomright: 6px 2px;
-moz-border-radius-bottomleft: 3px 4px;
border-top-left-radius: 4px 2px;
border-top-right-radius: 3px 4px;
border-bottom-right-radius: 6px 2px;
border-bottom-left-radius: 3px 4px;
border: solid 10px;
/* Der Rahmen ergibt ein 'D' */
-moz-border-radius: 0 50px 50px 0;
border-radius: 0 50px 50px 0;
border: groove 1em red;
-moz-border-radius: 2em;
-webkit-border-radius: 2em;
border-radius: 2em;
background: gold;
border: ridge gold;
-moz-border-radius: 13em/3em;
-webkit-border-radius: 13em 3em;
border-radius: 13em/3em;
background: gold;
-moz-border-radius: 40px 10px;
border-radius: 40px 10px;
background: black; color: gray; border-radius: 50%;
border-radius wird nicht auf Tabellen angewendet, wenn border-collapse auf collapse gesetzt ist.