0

Here Iam trying to place the text " 1. Create the structural aspect of a code editor using HTML, CSS." in the middle of the circle using CSS. I have successfully created a circle but unable to place the text in between. So I need help from you. Hope you will cooperate. So my code is

.descrip {
  /*For circle*/
  border: #559754;
  background-color: #559754;
  margin: 10px;
  border-radius: 60%;
  height: 15rem;
  width: 14rem;
}
<div class="descrip">
  <p>1. Create the structural aspect of a code editor using HTML, CSS.</p>
</div>

** I hope you will help me friends...

  • Add padding:10px; display:flex; align-items:center; justify-content:center; to your class descrip to center text inside it. – Naik Javaid Sep 28 '22 at 15:47

0 Answers0