Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Circle clip path

I have a circular image. I want to cut the top of it as I have shown in the picture. Is it possible to do this with clip path?

Thanks.

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

.circle {
  width: 75px;
  height: 75px;
  background-color: red;
  border-radius: 50%;
}
<div class="circle">

</div>

>Solution :

Yes you could use the inset() CSS function :

.circle {
  width: 75px;
  height: 75px;
  background-color: red;
  border-radius: 50%;
  clip-path: inset(20px 0 0 0);
}
<div class="circle">

</div>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading