Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS3 border-bottom-right-radius property

CSS3 border-bottom-right-radius property

Example

Add a rounded border to the bottom-right corner of a div element:

div

{

border:

2

px

solid

;

border-bottom-right-radius:

2

em

;

}

Try it »


Browser support

The numbers in the table indicate the first browser version that supports this property.

A number immediately before -webkit-, -ms-, or -moz- indicates the first browser version that supports that prefixed property.

property
border-radius 9.0 5.0
4.0 -webkit- 4.0
3.0 -moz- 5.0
3.1 -webkit- 10.5

Property definition and usage

The border-right-radius property defines the shape of the bottom-right border corner.

Tip: This property allows you to add rounded borders to an element!

Default value: 0
Inherited: no
Version: CSS3
JavaScript syntax: object object.style.borderBottomRightRadius="5px"

Syntax

border-bottom-right-radius:

length

|

%

[

length

|

%

];

Note: The two length or percentage values of the border-right-radius property define the shape of the corner as a quarter of an ellipse's outer border edge. The first value is the horizontal radius, the second is 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. The percentage of the horizontal radius refers to the width of the bounding box, while the percentage of the vertical radius refers to the height of the bounding box.

Value Description
length Defines the shape of the bottom-right corner.
% Use % to define the shape of the bottom-right corner.

Related Articles

CSS3 tutorial: CSS3 Borders