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
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
Share Improve this question asked Mar 17, 2020 at 8:26 HenryHenry 9831 gold badge8 silver badges31 bronze badges1 Answer
Reset to default 0In 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%);
}