How to create CSS3 Rounded Corners?

To create rounded corners, use the border-radius property in CSS3. Following is the code for creating rounded corners −


 Live Demo

<!DOCTYPE html>
body {
   font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
div {
   display: inline-block;
   width: 200px;
   height: 200px;
   text-align: center;
   font-size: 30px;
.rounded {
   border-radius: 24px;
   border: 4px solid green;
.normal {
   border: 4px solid green;
   margin-left: 20px;
<h1>CSS3 rounded corner example</h1>
<div class="rounded">Rounded Corners</div>
<div class="normal">Default corners</div>


The above code will produce the following output −