border-top-right-radius property
[This documentation is preliminary and is subject to change.]
Sets or retrieves one or two values that define the radii of the quarter ellipse that defines the shape of the upper-right corner for the outer border edge of the current box.
![]() |
Syntax
border-top-right-radius: radius | percentage
Property values
A variable of type String that specifies or receives one or two radius values.
radius-
A floating-point number, followed by either an absolute units designator (
cm,mm,in,pt, orpc) or a relative units designator (em,ex, orpx). For more information about the supported length units, see CSS Values and Units Reference. percentage-
An integer, followed by a percent sign (%). The value is a percentage of, for horizontal radii, the width of the border box, or for vertical radii, the height of the border box.
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value |
Standards information
- CSS Backgrounds and Borders Module Level 3, Section 4.4
Remarks
The border-top-right-radius property specifies the horizontal and vertical radii of the ellipse that defines the rounded upper-right corner for a border box. If there is only one value given, that value specifies both horizontal and vertical radii of the ellipse. If there are two values given, the first value sets the horizontal radius and the second value sets the vertical radius.
See also
- CSSStyleDeclaration
- currentStyle
- style
- defaults
- runtimeStyle
- Reference
- border-radius
- border-bottom-left-radius
- border-bottom-right-radius
- border-top-left-radius
Build date: 3/13/2012
