border-top-left-radius CSS property sets the rounded shape for the "top-left" corner of an element border box.
The following table summarizes the usages context and the version history of this property.
|Yes. See animatable properties.
|New in CSS3
border-top-left-radius property causes the element's background to be rounded even if no borders have been defined or its value is set to
The syntax of the property is given with:
This shorthand notation can take one, or two whitespace separated values.
- The optional second length values define the vertical radii for the top-left corner and the corner shape is thus a quarter ellipse.
- If the second length is omitted, or it is equal to the first – the corner shape is a quarter circle. If either length is zero, the corner is square, not rounded.
The example below shows the
border-top-left-radius property in action.
ExampleTry this code »
border: 2px solid #f08080;
The following table describes the values of this property.
|A length value in
em, etc. Negative values are not allowed.
|The size of the radius in percentage. In case of two values, percentage for the first value (i.e. horizontal radius) is calculated with respect to the width of the element's box, while percentage for the second value (i.e. vertical radius) is calculated with respect to the height of the element's box. Negative values are not allowed.
|Sets this property to its default value.
|If specified, the associated element takes the computed value of its parent element
border-top-left-radius property is supported in all major modern browsers.