CSS: border-bottom-right-radius property
This CSS tutorial explains how to use the CSS property called border-bottom-right-radius with syntax and examples.
Description
The CSS border-bottom-right-radius property defines rounded corners on the right side of the bottom border of a box.
Syntax
The syntax for the border-bottom-right-radius CSS property is:
border-bottom-right-radius: value;
Parameters or Arguments
- value
The radius value to apply to the right side of the bottom border of a box. It can be one of the following:
Value Description fixed Fixed value expressed in px, em, ...
div { border-bottom-right-radius: 4px; }percentage Percentage value
div { border-bottom-right-radius: 8%; }inherit Element will inherit the border-bottom-right-radius from its parent element
div { border-bottom-right-radius: inherit; }
Note
- See also the border-bottom-left-radius and border-radius properties.
Browser Compatibility
The CSS border-bottom-right-radius property has basic support with the following browsers:
- Chrome 4
- Firefox 4+ (Gecko 2+)
- Internet Explorer 9+ (IE 9+)
- Opera 10.5+
- Safari 5+ (WebKit 3+)
Example
We will discuss the border-bottom-right-radius property below, exploring examples of how to use this property in CSS.
Let's look at a CSS border-bottom-right-radius example where we provide a pixel value.
div { border-bottom-right-radius: 3px; border-bottom-style: solid; }
In this CSS border-bottom-right-radius example, we have defined rounded corners of 3px on the right side of the bottom border for the <div> tag. Be sure to apply a border-bottom-style so that the border appears.
Next, we'll look at a CSS border-bottom-right-radius example where we provide an em value.
div { border-bottom-right-radius: 1em; border-bottom-style: solid; }
In this CSS border-bottom-right-radius example, we have defined rounded corners of 1em to the right side of the bottom border.
Advertisements