Jump to content

Removing Margin of Sections

Recommended Posts

Site URL: https://kumquat-kale-39as.squarespace.com/

Password: 1234

Is there a way to remove the margins of each section? I have a code block in a section, but I can't get it to stretch to the edge of the page. There seems to be an inset on each section. How do I have control of the left, right, top and bottom margins of each section. So I can control which sections are joined right up to each other, and if there is a bit of space in the left and the right?

Matt

Link to comment
9 hours ago, mattjenkins said:

Site URL: https://kumquat-kale-39as.squarespace.com/

Password: 1234

Is there a way to remove the margins of each section? I have a code block in a section, but I can't get it to stretch to the edge of the page. There seems to be an inset on each section. How do I have control of the left, right, top and bottom margins of each section. So I can control which sections are joined right up to each other, and if there is a bit of space in the left and the right?

Matt

You mean Elfsight Code Block? Add to Design > Custom CSS > Save & reload the site

/* Elfsight code Block */
[data-section-id="61d3c6b8d84036572456d8e4"] .content-wrapper {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
html, body {
    overflow-x: hidden;
}

 

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

Link to comment
5 hours ago, tuanphan said:

You mean Elfsight Code Block? Add to Design > Custom CSS > Save & reload the site

/* Elfsight code Block */
[data-section-id="61d3c6b8d84036572456d8e4"] .content-wrapper {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
html, body {
    overflow-x: hidden;
}

 

hi Tuanphan do you know any code to reduce space between stacking images on my home page in mobile view? 

regards Jake

Untitled design (5).png

Link to comment
On 1/5/2022 at 7:36 PM, jakelyd said:

Add to Design > Custom CSS

/* Mobile Stacked Image padding */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1641319651300_18211 {
    padding-bottom: 1px !important;
}
}

 

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

Link to comment
4 hours ago, tuanphan said:

Add to Design > Custom CSS

/* Mobile Stacked Image padding */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1641319651300_18211 {
    padding-bottom: 1px !important;
}
}

 

thank you worked perfectly!!!

 

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.