how to create circle in css code example

Example 1: css circle

#circle {
      width: 100px;
      height: 100px;
      background: red;
      border-radius: 50%
    }

Example 2: making a circle css

#circle {
  width: 100px;
  height: 100px;
  background: red;
  border-radius: 50%
}

Example 3: circle css

#circle {
  width: 100px;
  height: 100px;
  background: red;
  border-radius: 50%
}

Example 4: how to make a circle in html

<svg xmlns="http://www.w3.org/2000/svg">
    <circle cx="50" cy="50" r="50" fill="red" />
</svg>

Example 5: drawing a circle with css

#it is the border-radius:50; that makes the circle.
.MyCircle{
  width:100px;
  height:100px;
  background-color:blue;
  border-radius:50px;
}

Tags: