Jump to content

Margins setting for mobile

Recommended Posts

Posted

Hi there,

I'd like to customise the margins of my site on the mobile version (the site is still in progress)
dachshund-sprout-2cee.squarespace.com
+ password thiste_wip

Here is a screenshot of the "Projets" page, as you can see the page margins don't fit the header margin, plus i'd like to reduce the overall margin through the entire website.

Is there anyway to achieve that with CSS ?

Thanks

margin.jpg

  • Replies 2
  • Views 1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Posted
36 minutes ago, alexisb said:

Hi there,

I'd like to customise the margins of my site on the mobile version (the site is still in progress)
dachshund-sprout-2cee.squarespace.com
+ password thiste_wip

Here is a screenshot of the "Projets" page, as you can see the page margins don't fit the header margin, plus i'd like to reduce the overall margin through the entire website.

Is there anyway to achieve that with CSS ?

Thanks

margin.jpg

Try the following custom css code for section id you want to apply

@media only screen and (max-width: 767px) {
  section[data-section-id="664c9e0bc4805028a7d6c3f1"] .fe-block {
    padding-right: 40PX;
    padding-left: 40px;
  }
}

Let me know how it works on your site

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
3 hours ago, Beyondspace said:

Try the following custom css code for section id you want to apply

@media only screen and (max-width: 767px) {
  section[data-section-id="664c9e0bc4805028a7d6c3f1"] .fe-block {
    padding-right: 40PX;
    padding-left: 40px;
  }
}

Let me know how it works on your site

Thanks but unfortunately it doesn't work, positive values increase the margin width, I tried with negative values just in case with no result.

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.