Create a circle shape with HTML and CSS

Create a circle shape with HTML and CSS



Create class circle with a bit of css code bellow:

.circle {
  border-radius: 50%;
  height: 300px;
  width: 300px;
  background-color: #18C973;
}


In this example, we use the border-radius property with 50% value to create a circle shape.

In HTML code:



circle csscircle htmlcsshtml

© 2019 4codev

Created with love by Sil.