We would like to know how to create Circle arc.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#arc-container {<!-- w ww . j a v a2 s . c o m-->
width: 300px;
height: 230px;
background: black;
}
.arc {
margin: 0 auto;
width: 200px;
height: 200px;
border-radius: 50%;
border: 15px dashed red;
position: relative;
}
.arc:after {
content: '';
width: 200px;
height: 200px;
border-radius: 50%;
position: absolute;
top: -15px;
left: -15px;
border: 15px dashed red;
-webkit-transform: rotate(30deg);
transform: rotate(30deg);
}
</style>
</head>
<body>
<div id="arc-container">
<div class="arc"></div>
</div>
</body>
</html>
The code above is rendered as follows: