Jump to content

Margins setting for mobile

Recommended Posts

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

Link to comment
  • Replies 2
  • Views 201
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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 (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
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.

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.