How to draw circle with text in Vertically and horizontally middle?

Published on Author Code Father
How to draw circle with text in middle:
.circle {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  font-size: 30px;
  color: #000;
  line-height: 250px;
  text-align: center;
  background: #ddd}
<div class="circle">Circle</div>

Comments

comments