DS_210 Posted April 2, 2023 Posted April 2, 2023 Hello all!I'm new to the community but I'm in desperate need for a bit of help, I have searched thru old posts and I've yet to find a fix but I see others with similar issues. I'm hoping just a bit of CSS will be the trick to fix these issues but what I've tried so far has yet to work. My apologies for the long post and I truly appreciate any help you might be able to provide!!Im facing a major issue at the moment while in the process of finally re-designing my ugly old website, it has to do with Squarespace automatically adding margin to my sections and under all of my code blocks, and sometimes even adding padding to my images(?) by expanding them to the point that it throws my design off. The biggest issue to be honest is the margin under the code blocks, it is very noticeable and the code blocks are a necessity for the time being.Summary: Squarespace seems to like to add a large margin under code blocks and my images will resize and appear different from the published page vs the actual live page, please see the 4 examples below.-The before screenshots are what the design looks like when I publish/save the page.-The after screenshots are the outcome of what they look like live and includes the added margin, sometimes changing the layout drastically in some sections.*Ex 1 - Before: *Ex 1 - After: The middle text is an image block, and it likes to resize itself automatically upon publishing which throws off the alignment of the entire section. *Ex 2 - Before *Ex 2 - After - Somehow automatically adds a small amount of margin above my images in this example. *Ex 3 - Before *Ex 3 - After - The margin above testimonials at the top of the section should be 1 row in height, while it has increased margin and moved the text. Now here is the one that is really bothering me. The HUGE MARGIN UNDER CODE BLOCKS!! Its throwing off the design way worse than the above examples and I'm desperate for a solution.*Example 4.1 Before - The bottom of the code block is as close as I can make it, and I leave one row of space between that and the section divider. *Example 4.2 After - Squarespace seems to add a margin block underneath the code-block (see purple in last image) *Example 4.3 These margin blocks or spacers, which is highlighted in purple, appears under every single one of my code blocks. 🥲 !Question 1: Is there any way with CSS or otherwise that I can remove these unwanted margin blocks? I have tried multiple times using css setting margin to zero which were posted on this forum but none of them seemed to do the trick, I'm not really knowledgable with CSS yet. !Question 2: Is there any way that I can stop Squarespace from automatically resizing image and other blocks from their size at time of publishing vs. the outcome on the live website? Thank you in advance for any assistance!😊
tuanphan Posted April 5, 2023 Posted April 5, 2023 Hi, Can you share link to this page? We can check easier 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
Create an account or sign in to comment
You need to be a member in order to leave a comment