ez_belonging Posted March 15, 2021 Posted March 15, 2021 Site URL: https://www.deepbelonging.org/program-calendar Hello! I have successfully used CSS code to crop all images on my site to be circular. HOWEVER, this does not seem to work on the calendar (events) page or in the store. The images there seem to be thumbnail images, so I'm not sure if additional code is needed for these elements. Thank you!
derricksrandomviews Posted March 15, 2021 Posted March 15, 2021 .sqs-block-image .image-block-outer-wrapper.image-block-v2 .intrinsic img { border-width: 50%; } If you put the code in custom css all image blocks will be round, if you put it in the header of your blog, in a code block then only the blog images will be round. If you want only one post then put it in a code block in that post. You will want the code to look like this in a code block, and you can change it by adjusting the 50% to a larger or smaller number. <style> .sqs-block-image .image-block-outer-wrapper.image-block-v2 .intrinsic img { border-width: 50%; } <style>
ez_belonging Posted March 16, 2021 Author Posted March 16, 2021 Hi there. Neither of those worked. I tried adding the CSS code and using the code block. Any other ideas?
ez_belonging Posted March 16, 2021 Author Posted March 16, 2021 And just for a bit more info, the images on the blog posts are circles, but not the images on the main blog page. I think those are thumbnails. Same with the products in the store. So the issue seems to be thumbnails. In both cases, it seems that Squarespace automatically applies a 1:1 crop to those thumbnail images. The CSS code that I've used to crop all other images to circles is the following: .sqs-block-image img{ border-radius: 50%; }
ez_belonging Posted March 17, 2021 Author Posted March 17, 2021 Hi, just seeing if you have any other ideas. Your suggestions did not work. Thanks!
tuanphan Posted March 29, 2021 Posted March 29, 2021 On 3/16/2021 at 9:52 PM, ez_belonging said: And just for a bit more info, the images on the blog posts are circles, but not the images on the main blog page. I think those are thumbnails. Same with the products in the store. So the issue seems to be thumbnails. In both cases, it seems that Squarespace automatically applies a 1:1 crop to those thumbnail images. The CSS code that I've used to crop all other images to circles is the following: .sqs-block-image img{ border-radius: 50%; } Do you still need help On 3/17/2021 at 11:56 PM, ez_belonging said: Hi, just seeing if you have any other ideas. Your suggestions did not work. Thanks! Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.