CSS border-end-start-radius Property
Example
Add rounded borders to the corner at the end in block direction and at the start in inline direction, for two <div> elements:
#example1 {
border: 2px solid red;
border-end-start-radius: 25px;
}
#example2 {
border: 2px solid red;
border-end-start-radius: 50px
20px;
}
Try it Yourself »
More "Try it Yourself" examples below.
Definition and Usage
The border-end-start-radius property defines the radius of the corner at the end in the block direction and the start in the inline direction.
Values for the border-end-start-radius property can be set in different ways:
If the border-end-start-radius property has two values:
- border-end-start-radius: 10px 50px;
- radius at block end is 10px
- radius at inline start is 50px
If the border-end-start-radius property has one value:
- border-end-start-radius: 10px;
- radius at corner of block end and inline start is 10px
The CSS
border-end-start-radius property is very similar to CSS properties
border-bottom-left-radius,
border-bottom-right-radius,
border-top-left-radius and
border-top-right-radius, but the
border-end-start-radius property is dependent on block and inline directions.
Note: The related CSS properties
writing-mode,
text-orientation and
direction define block and inline directions. That is why these properties also affects the result of the border-end-start-radius property. For pages in English, inline direction is left to right and block direction is downward.
| Default value: | 0 |
|---|---|
| Inherited: | no |
| Animatable: | yes. Read about animatable Try it |
| Version: | CSS3 |
| JavaScript syntax: | object.style.borderEndStartRadius="50px" Try it |
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
| Property | |||||
|---|---|---|---|---|---|
| border-end-start-radius | 89.0 | 89.0 | 66.0 | 15.0 | 75.0 |
CSS Syntax
border-end-start-radius: 0|length|initial|inherit;
Property Values
| Value | Description | Demo |
|---|---|---|
| 0 | Default value. | Demo ❯ |
| length | Defines the shape of the corner at block end and inline start. Read about length units | Demo ❯ |
| % | Defines the shape of the corner at block end and inline start in percentange of length of element on corresponding axis. | Demo ❯ |
| initial | Sets this property to its default value. Read about initial | |
| inherit | Inherits this property from its parent element. Read about inherit |
More Examples
With direction property
The position of a rounded corner at the end in the block direction, and at the start in the inline direction, is affected by the direction property:
#example1 {
border: 2px solid red;
direction: rtl;
border-end-start-radius: 25px;
}
Try it Yourself »
With writing-mode property
The position of a rounded corner at the end in the block direction, and at the start in the inline direction, is affected by the writing-mode property:
#example2 {
border: 2px solid red;
writing-mode: vertical-rl;
border-end-start-radius: 25px;
}
Try it Yourself »
Related Pages
CSS tutorial: CSS Rounded Corners
CSS border-bottom-left-radius property: CSS Border-bottom-left-radius property
CSS border-bottom-right-radius property: CSS Border-bottom-right-radius property
CSS border-top-left-radius property: CSS Border-top-left-radius property
CSS border-top-right-radius property: CSS Border-top-right-radius property
CSS direction property: CSS Direction property
CSS text-orientation property: CSS Text-orientation property
CSS writing-mode property: CSS Writing-mode property