Matt-W-Urst Posted November 7, 2023 Share Posted November 7, 2023 (edited) Hi together, I can't make it with my CSS attempts and hope to get your help: On my homepage under "Projects" you can see the masonry of my blog summary: Here the three-column display becomes two-column for screens <1450 px and even one-column for pages <980. I would like to change two things: i would like them like on my blog site summary (link): they should stay three-columned until <750px (when the page switches to mobile mode anyway). i would like to reduce the vertical spacing between the three image/text blocks. These seem too large, especially on mobile. How could I achieve this? Thank you in advance!! Edited November 8, 2023 by Matt-W-Urst for better reading Link to comment
Solution creedon Posted November 8, 2023 Solution Share Posted November 8, 2023 (edited) Quote On my homepage under "Projects" you can see the masonry of my blog summary: i would like to reduce the vertical spacing between the three image/text blocks. These seem too large, especially on mobile. As far as I can tell this element is totally handled by SS backend calculations. It doesn't surprise me as it's a masonry effect. As far as I can tell there is no media queries controlling the wrapping. The code seems to use 994px as a breakpoint. Add the following to Page Settings > Advanced > Page Header Code Injection for the page. Please see per-page code injection. <style> @media ( max-width : 994px ) { #block-57077bc162dcc036a685 .summary-item-list { display : flex; flex-direction : column; gap : 50px; height : unset !important; } #block-57077bc162dcc036a685 .sqs-gallery-design-autocolumns-slide { position : unset; } } </style> This is for v7.1 and specific to the poster's need. I don't have an immediate solution for issue #1. Let us know how it goes. Edited November 13, 2023 by creedon Matt-W-Urst 1 Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Matt-W-Urst Posted November 13, 2023 Author Share Posted November 13, 2023 Thank you very much! That helped me a lot 🙏 creedon 1 Link to comment
Matt-W-Urst Posted November 14, 2023 Author Share Posted November 14, 2023 Hi @creedon,Now I realize that this solution has a disadvantage. There is a long space under the element, which does not appear in the editor and cannot be reduced there 🤷🏻♂️ Do you have an idea for this? Link to comment
creedon Posted November 14, 2023 Share Posted November 14, 2023 Quote Now I realize that this solution has a disadvantage. There is a long space under the element, I don't have a solution. This is a fluid engine section and they don't adapt to the height of elements changing within them. A classic editor section would adapt. Matt-W-Urst 1 Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Matt-W-Urst Posted November 15, 2023 Author Share Posted November 15, 2023 (edited) thank you! I have removed the media query instruction again and simply aligned the overview in the mobile editor: this way I don't notice this too big fun anymore and save myself extra code. Thanks again! Edited November 15, 2023 by Matt-W-Urst creedon 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment