Jump to content

Remove padding in text block

Go to solution Solved by Ziggy,

Recommended Posts


I allready tried some codes I read in the forum, but none of them worked.
I have these colored text blocks (green and white) and I want to have the same spacing between text and border all around.
Event if I set the padding to 5% in the squarespace settings it's not the same. Is there any code to adjust the padding?

Ideally, one code for all boxes, but I don't mind adding a code for each box if needed. 

site URL: https://emu-apricots-sgll.squarespace.com/
password: umoweb

I'll appreciate any help.

Bildschirm­foto 2023-09-19 um 14.12.45.png

Bildschirm­foto 2023-09-19 um 14.16.55.png

Link to comment
  • Solution

Squarespace is dynamic, as websites need to be as they get viewed on a huge number of screen sizes and resolutions. It is also on a grid system, so the block has to stay within those bounds. The slight variation in the padding is simply coming from those constraints. The padding you are setting is effectively a minimum of 5%, it is not an absolute value.

Using this code and targeting specific text blocks should mean that the background only gets applied around the text and should be more consistent:

#block-dd85f78398b41a11242b {
  .sqs-html-content {

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.