DEV Community

TidyCoder
TidyCoder

Posted on

Create a circle in html css

How to create a circle in html/css

First step: create the square

To create a square in html/css, you can create/write a div element, and add a background and a size to this:

Two step: use the border-radius css property to add rounded corners to this

Set the border-radius property to 50% for all corner, Because 50% is the half of 59px in this code.

Top comments (0)