duducampos Posted December 11, 2023 Posted December 11, 2023 (edited) Hi, I hope anyone knows how to fix it. I'm using a "blog" page to feature projects. On wide screens, I use maybe 3 or 2 images in the same row with thin white borders. When converted to small screens/mobile, Squarespace repositions the images, creating a weird vertical spacing between them. I would love the mobile version to keep the same spacing between images, even if it changes its scale and position. https://www.beeldmotion.com/work/sportv-rebrand Best! Edited December 11, 2023 by duducampos
Solution tuanphan Posted December 12, 2023 Solution Posted December 12, 2023 You can add this code to Website Tools (under Not Linked) > Custom CSS to fix problem /* Blog content image block space */ @media screen and (max-width:767px) { div.blog-item-content-wrapper .image-block.sqs-block, div.blog-item-content-wrapper .image-block.sqs-block:first-child { padding-top: 2px !important; padding-bottom: 2px !important; } } duducampos 1 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!)
duducampos Posted December 12, 2023 Author Posted December 12, 2023 @tuanphan Maybe you can help me with this one too... same page. I would like that any gallery block to have the same borders as the images. Any way to fix that on the whole website?
tuanphan Posted December 13, 2023 Posted December 13, 2023 Use this CSS code @media screen and (max-width:767px) { .gallery-block.sqs-block { padding: 4px !important; } } duducampos 1 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!)
duducampos Posted December 14, 2023 Author Posted December 14, 2023 You nailed it. Again. Thank you so much!!! tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment