CSS border radius
The border-radius CSS property rounds the corners of an item's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners.
CSS border radius - how to create - example
With CSS, you can give each element "rounded corners" using proprietary border-radius.
#example-coner1 {
border: 2px solid red;
padding: 10px;
border-radius: 15px;
}
#example-coner2 {
border: 2px solid blue;
padding: 10px;
border-radius: 20px 6px;
}
HTML cod above will display this result for CSS border radius - how to create -
CSS border-radius - Specify each corner - How to create
If you specify a single border property radius value, this radius will be applied to all four corners.
However, you can specify each corner separately if you want. Here are the rules:
Four values: the first value is valid for the top left, the second value is applied from the top right, the third value is applied to the bottom right, and the fourth value is applied in the lower-left corner
Three values: the first value is valid for the top left, the second value is for the top-right and the lower-left, and the third value is applied to the bottom-right
There are two values: the first value is applied to the top left and right-hand corner, and the second value is applied from the top right and the lower-left corner
A single value: all four corners are rounded evenly
Here are three examples:
1. Four values - border-radius:15px 50px 30px 5px:
2. three values - border-radius:15px 50px 30px:
3. There are two values - border-radius:15px 50px:
{
border-radius:15px 50px 30px 5px;
padding:10px;
width:250px;
height:180px;
border: thin solid #0C0;
margin-left: 18px;
margin-top: 10px;
float: left;
}
.corner-radius5
{
border-radius:15px 50px 30px;
padding:10px;
width:250px;
height:180px;
border: thin solid #0C0;
margin-left: 18px;
margin-top: 10px;
float: left;
background-color: #9FF;
}
.corner-radius6
{
border-radius:15px 50px;
padding:10px;
width:250px;
height:180px;
border: thin solid #0C0;
margin-left: 18px;
margin-top: 10px;
float: left;
background-color: #FF6;
}
CSS border radius
CSS border radius - css tutorial
This tool makes it easy to create, adjust, and experiment with custom colors for the web.

Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.

Find here examples of creative and unique website layouts.

Find here examples of creative and unique website CSS HTML menu.