Learn how border-radius works with live examples
The border-radius property is used to create rounded corners for elements. You can make slightly rounded boxes, pill shapes, or even perfect circles.
It accepts values in px, %, em etc.
.box{
border-radius:10px;
}
.box{
border-radius:50px;
}
.box{
border-radius:50%;
}
.box{
border-radius:20px 50px;
}
.box{
border-radius:10px 40px 60px 80px;
}
/* order:
top-left
top-right
bottom-right
bottom-left */