HTML CSS examples for CSS Property:border-top-right-radius
The border-top-right-radius property sets the rounded shape for the 'top-right' corner.
The following table summarizes the border-top-right-radius Property.
Item | Value |
---|---|
Default value: | 0 |
Applies to: | All elements |
Inherited: | No |
Animatable: | Yes. |
The syntax of the property is as follows:
border-top-right-radius: [ length | percentage ]1 or 2 values | initial | inherit
The following table describes the values of this property.
Value | Description |
---|---|
length | A length value in px, pt, cm, em, etc. Negative values are not allowed. |
percentage | The size of the radius in percentage. |
initial | Sets this property to its default value. |
inherit | take the value of its parent element border-top-right-radius property. |
The example below shows the border-top-right-radius property.
<!DOCTYPE html> <html lang="en"> <head> <title>Example of CSS3 border-top-right-radius property</title> <style type="text/css"> div {<!-- w w w.jav a2 s. co m--> padding: 15px; background: #ffb6c1; border: 2px solid #f08080; border-top-right-radius: 20px; } </style> </head> <body> <div> The <code>border-top-right-radius</code> property defines the shape of the bottom-left border corner of an element. </div> </body> </html>