CSS3 border-radius property can be used to make corners round of a block element. Border radius can have upto 4 values. Here is how a simple div with border-radius look like:
CSS property border-radius
CSS version:
CSS 3
Value:
[length | percentage]{1,4}
Initial:
0 (individual properties)
Applies to:
all elements
Inherited:
no
Animatable:
yes
Few points to note about border-radius property:
border-radius 4 values: First value is for top-left radius, 2nd is for top-right, third is for bottom right and 4th is for bottom left.
border-radius 3 values: Similar to 4 values situation except that 2nd value applies to bottom left corner also.
border-radius 2 values: First value is for top-left and bottom right corner. 2nd value is for other two corners.
border-radius 1 value: It applies to all 4 corners.
Alternatively we can also use border-top-left-radius, border-top-right-radius, border-bottom-right-radius and border-bottom-left-radius. This may be useful in case we want to override one value defined in some other style sheet.