How to create the transparent circle with cut inside?


Can we create transparent circle with cut inside with css and html? I have attached the image for the clarification

transparent circle with cut inside

.circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid black;
}
<div class="circle"></div>

Answers:


You can do this with :after pseudo-element

.circle {
  width: 150px;
  height: 150px;
  border-top: 2px solid black;
  border-left: 2px solid black;
  border-right: 2px solid black;
  border-bottom: 2px solid transparent;
  border-radius: 50%;
  position: relative;
  transform: rotate(30deg);
}

.circle:after {
  content: '';
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  height: 10px;
  width: 40px;
  left: 50%;
  transform: translate(-50%, 7%);
  border-bottom: 2px solid black;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
}
<div class="circle"></div>