CSS Property: border-radius
[this page | pdf | back links]
The CSS (CSS1) border-radius property is used to add
rounded corners to an element. It is a shorthand way of
setting the four individual border radius properties, see:
-
border-top-left-radius
-
border-top-right-radius
-
border-bottom-right-radius
-
border-bottom-left-radius
Valid property values (other than inherit and initial) are
(single-value versions) of the valid properties for each of these individual
elements.
|
Default Value:
|
0
|
|
JavaScript syntax:
|
e.g. object.style.borderRadius="4px"
|
|
Inherited:
|
No
|
|
Animatable:
|
Yes
|
Depending on the number of values supplied:
|
Number supplied
|
E.g.
|
Which values are applied to which corners
|
|
1
|
x1
|
x1 applied to all four corners
|
|
2
|
x1 x2
|
x1 applied to top-left and bottom-right corners
x2 applied to top-right and bottom-left corners
|
|
3
|
x1 x2 x3
|
x1 applied to top-left corner
x2 applied to top-right and bottom-left corners
x3 applied to bottom-right corner
|
|
4
|
x1 x2 x3 x4
|
x1 applied to top-left corner
x2 applied to top-right corner
x3 applied to bottom-right corner
x4 applied to bottom-left corner
|
NAVIGATION LINKS
Contents | Prev | Next | CSS Properties