html - Border radius circle -


i've code :

span p {      margin: 0;  }    span {      background-color: red;      display: inline-block;      border-radius: 50%;  }
<span>      <p>25</p>      <p>08</p>  </span>

i want make perfect circle on span. try border-radius: 50%; not work.

thanks !

you can giving span fixed width , height:

span p {      margin: 0;  }    span {      background-color: red;      display: inline-block;      border-radius: 50%;      width: 50px;      height: 50px;      text-align: center;  }
<span>      <p>25</p>      <p>08</p>  </span>


Comments

Popular posts from this blog

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -