0

Gutenberg allows extra CSS styles for an image.

I want to make the image a circle and I thought this CSS would work:

img.imgcircular {
-webkit-clip-path: circle(15.7% at 50% 50%);
clip-path: circle(15.7% at 50% 50%);
}

And the class on the image is "imgcircular"

Any ideas why it doesn't work?

Thanks

1 Answer 1

0

In your .css try to add the following :

.is-style-circle-mask img,
.is-style-rounded img {
-webkit-clip-path: circle(15.7% at 50% 50%);
 clip-path: circle(15.7% at 50% 50%);
}
1
  • Wow! Great thank you very much!
    – Henry
    Mar 17, 2020 at 11:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.