Add a rounded border to the top-left corner of a div element:
![]()
The border-top-left-radius property is supported in IE9+, Firefox 4+, Chrome, Safari 5+, and Opera.
The border-top-left-radius property defines the shape of the border of the top-left corner.
Tip: This property allow you to add rounded borders to elements!
| Default value: | 0 |
|---|---|
| Inherited: | no |
| Version: | CSS3 |
| JavaScript syntax: | object.style.borderTopLeftRadius="5px" |
Note: The two length or percentage values of the border-top-left-radius properties define the radii of a quarter ellipse that defines the shape of the corner of the outer border edge. The first value is the horizontal radius, the second the vertical radius. If the second value is omitted it is copied from the first. If either length is zero, the corner is square, not rounded. Percentages for the horizontal radius refer to the width of the border box, whereas percentages for the vertical radius refer to the height of the border box.
| Value | Description | Play it |
|---|---|---|
| length | Defines the shape of the top-left corner | Play it » |
| % | Defines the shape of the top-left corner in % | Play it » |
CSS3 tutorial: CSS3 Borders
Your message has been sent to W3Schools.