css how to make a circle code example

Example 1: css circle

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

Example 2: circle css

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

Example 3: how to create a circle with css

<div id="circle">
</div>

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

Example 4: 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:

Css Example