We would like to know how to create CSS3 Circle with border-radius.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.circle {<!-- ww w.j a va 2 s. com-->
position: relative;
background: #666;
width: 100px;
height: 100px;
text-align: center;
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;
}
.circle p {
font: italic 52px Georgia;
color: #fff;
vertical-align: middle;
height: 50px;
position: inherit;
top: 15%;
}
</style>
</head>
<body>
<div class="circle">
<p>a</p>
</div>
</body>
</html>
The code above is rendered as follows: