Jump to content

How to remove padding and margins for a specific block on Sqaurespace 7.1?

Recommended Posts

Posted
21 minutes ago, Lago said:

Site URL: https://www.lago.lt/store/p/day-dreaming

Hi,

Been searching for answer for a few hours, unfortunately unsuccessfully. 

How to remove padding and margins for a specific block on Squarespace 7.1? In my case, I want to make additional information section in products page full-width, without any padding or margins.

https://www.lago.lt/store/p/day-dreaming

Password: Slyva1

 

Screenshot 2021-03-14 at 13.27.59-2.png

it's actually a section, you can use this tool to get block/section unique id

section[data-section-id="604cd95eccf08c42a6bdbe89"] .content-wrapper {
  padding: 0 !important;
  margin: 0 !important;
}
section[data-section-id="604cd95eccf08c42a6bdbe89"] .sqs-layout > .sqs-row {
  margin: 0;
}
#block-8d8109408d01a61d8da5 {
  padding: 0 !important;
}

image.thumb.png.d76735caa99acdb797c1ad11b29857ab.png

Squarespace ID Finder - Chrome Web Store (google.com)

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted

Sorry your code doesn't work. The margins just got messed up. 

Screenshot 2021-03-14 at 15.27.10.png

Posted
24 minutes ago, Lago said:

Sorry your code doesn't work. The margins just got messed up. 

Screenshot 2021-03-14 at 15.27.10.png

that the block shadow, removed it

section[data-section-id="604cd95eccf08c42a6bdbe89"] .content-wrapper {
  padding: 0 !important;
  margin: 0 !important;
}
section[data-section-id="604cd95eccf08c42a6bdbe89"] .sqs-layout > .sqs-row {
  margin: 0;
}
#block-8d8109408d01a61d8da5 {
  padding: 0 !important;
}
#block-8d8109408d01a61d8da5  .image-title * {
  box-shadow: none !important;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted

still doesn't work, I want the width of the grey area to be fully across the screen (for example like the footer or the header).

  • 2 weeks later...
  • 1 year later...
Posted
5 hours ago, Iwan said:

Hi @tuanphan I'm trying to reduce the padding between my homepage top section main header and the text underneath it can you please ehlp?

https://beige-oleander-mp66.squarespace.com/ password tuansqsp

Do you mean reducing this padding?

 

image.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
14 hours ago, Iwan said:

 thanks for your help. No, it's the space between "Be all you came here to be..." and the sentence below it: "Close the gap between..."

Try adding this CSS

div#block-yui_3_17_2_1_1649250868234_2516 p {
    margin-top: -40px;
}

 

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!)

  • 2 years later...
Posted
On 3/23/2021 at 9:06 AM, tuanphan said:

Have you solved it yet?

Is there a way to make the line blocks in the additional info section full width?

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.