The CSS3 border-radius property is an easy way to give an element
rounded corners, without having to use corner images or multiple div
tags. We'll go through some examples of how to use the border-radius
property:
You can also set each corner separately. The four values for each
radii are given in the order top-left, top-right, bottom-right,
bottom-left. If bottom-left is omitted it is the same as top-right.
CSS
.rounded2 {
border-top-left radius: 20px; /*each corner can be defined separately*/
border-top-right radius: 0;
border-bottom-right-radius: 20px;
border-bottom-left-radius: 0;
}
...or...
.rounded2 {
border-radius: 20px 0 20px 0; /*define all corners on one line*/
}
Vendor Prefixes:
While the border-radius property has now become widely supported in
modern browsers and mobile devices, if you need to support older browsers you may want to use
the vendor prefixes: