CSS border-top-right-radius Property
Example
#example1 {
border: 1px solid red;
padding: 10px;
border-top-right-radius: 50px;
}
#example2 {
border: 1px solid red;
padding: 10px;
border-top-right-radius: 50px 25px;
}
Hello World!
Meaning
The border-top-right-radius CSS property rounds the top-right corner of an element by specifying the radius (or the radius of the semi-major and semi-minor axes) of the ellipse defining the curvature of the corner.
Default value: | 0 |
Inherited: | No |
Animatable: | No |
Version: | CSS3 |
JavaScript syntax: |
|
Standard Syntax
border-top-right-radius: length|% [length|%]|initial|inherit|revert|revert-layer|unset;
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Status
Property Values
The following table describes the values of this property.
Value | Description |
---|---|
length | Specifies the length value in px, pt, cm, em, etc. Negative values are not allowed. |
percentage | The size of the radius in percentage. (In case of two values, the first value is horizontal radius and the second value is vertical radius.) |
initial | Sets this property to its default value. |
inherit | If specified, the associated element takes the computed value of its parent element animation-delay property. |
revert | Reverts the cascaded value of the property from its current value to the value the property |
revert-layer | Rollback styles to the ones specified in previous cascade layers. |
unset | Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not. |
Default CSS Property Values
selectors {
border-top-right-radius: 0;
}