CSS Number in a Circle
Creating a number within a circle using CSS.
HTML
<body>
<div class="circle">
<p>30</p>
</div>
</body>
CSS
.circle {
border: 0.1em solid red;
border-radius: 100%;
height: 2em;
width: 2em;
background-color: #BA1726;
text-align: center;
}
.circle p {
margin-top: 0.10em;
font-size: 1.5em;
font-weight: bold;
font-family: sans-serif;
color: white;
}
JavaScript
/* Creating a number within a circle using CSS */