MartyJ Posted April 29, 2022 Share Posted April 29, 2022 Site URL: https://stlawrencegoldfs.squarespace.com/summer-blossom I have added a widget into a code block and now have a white border top and bottom - the block needs to be full height so I have a seamless transition between sections. I have the height set at 10 which seems to be the lowest I can go. Is there a CSS code that will solve this white border problem? New to CSS and appreciate any help. Link to comment
creedon Posted April 29, 2022 Share Posted April 29, 2022 (edited) Add the following to Design > Custom CSS. // full bleed blocks, uses LESS [data-section-id="627039bf1a0c94590514a959"], { * { padding : 0 !important; } .sqs-layout { > .sqs-row { margin-left : 0; margin-right : 0; } .sqs-row .sqs-block { padding : 0 !important; } } } This is for v7.1 and specific to the poster's need. To address multiple blocks just repeat the first line and change the id. Let us know how it goes. Edited May 7, 2022 by creedon version 3 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
MartyJ Posted April 29, 2022 Author Share Posted April 29, 2022 Works fine, thank you so much! creedon 1 Link to comment
MartyJ Posted May 6, 2022 Author Share Posted May 6, 2022 Hi Creedon, Is there additional code so this fix also works in mobile? Thank you. Martin Link to comment
creedon Posted May 6, 2022 Share Posted May 6, 2022 (edited) I have updated my previous post. It now says take out all the padding for all elements in the indicated section. One thing I did notice, is that the code block is not responsive on very wide viewports. This appears to be a limitation of the code. You may want to consider putting a background color on that section for those who might view your page wide viewports. Let us know how it goes. Edited May 7, 2022 by creedon 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
MartyJ Posted May 7, 2022 Author Share Posted May 7, 2022 Hi there, Thank you again for the help - yes, it does work to remove that white space in mobile however the title of the slide is very close to the top margin - could code be added to pad just the top of the slider - I managed to solve the bottom pagination icons by setting them to "outside" of the image as they were also getting lost on the page. Sorry for all this fuss - picky clients. Best, Martin Link to comment
creedon Posted May 7, 2022 Share Posted May 7, 2022 Quote the title of the slide is very close to the top margin I'm not seeing this. Could you post a pic to show what you are seeing? I also updated my code again as I forgot to remove some margins that cause overflow. 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment