More than one way to create a circle from a rectangle in css3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

More than one way to create a circle from a rectangle in css3

To create a circle from a rectangle, the border-radius can be the same as the width and the height

13th Apr 2018, 2:52 AM
kekeli Dos Akouete
kekeli Dos Akouete - avatar
1 Answer
+ 2
To create a perfect circle you need to make a square out of an element by setting the width and height the same. Then set the border radius to 50%.
3rd May 2018, 1:20 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar