border-top-left-radius
Specifies the radius of the top-left corner of an element.
You can specify separate horizontal and vertical radii by separating values with a space. If omitted, a uniform radius (perfect circle) is used.
Sample Code
div.test { border-top-left-radius: 50%;}
div.test1 { border-top-left-radius: 50px 25px;}
Available Values (border-color)
| Value | Description |
|---|---|
| Number | Specified as a numeric value. Common units are 'px' and '%'. When using '%', the reference is the element's size (border box). The initial value is '0'. |
Browser Preview
The background color of the samples below is set to '#00f'.
<div style="border-top-left-radius: 50%; background-color: #00f; margin: 0 auto; width: 100px; height: 100px;"></div>
<div style="border-top-left-radius: 50px 25px; background-color: #00f; margin: 0 auto; width: 100px; height: 100px;"></div>
Browser Support
3 △
2 △
1 △
3 △
2 △
1 △
4 △
3 △
2 and earlier ×
8 ×
7 ×
6 ×
9 and earlier ×
3 △
2 △
1 △
Android Browser
4.4+ ○
3 and earlier ×Overview
Specifies the radius of the top-left corner of an element.
When using '%', the reference value is the element's size (border box).
You can set separate horizontal and vertical radii by separating values with a space. The value before the space is the horizontal radius, and the value after is the vertical radius. This allows for an elliptical corner shape. If omitted, a uniform radius (perfect circle) is used.

/* div { border-top-left-radius: horizontal vertical;} */
div.test { border-top-left-radius: 50% 25%;}
Note: Some older Android browsers have a bug where specifying 'border-top-left-radius' with a '%' value results in no rendering.
If you find any errors or copyright issues, please contact us.