Jump to content

Fix padding on mobile

Go to solution Solved by Klintholm,

Recommended Posts

4 hours ago, Klintholm said:

Hey guys,

On mobile my site, www.reload.dk, has different gutters/padding. I want it to align.

https://reload.dk/hvem-er-vi/teamet  and the carousel at the bottom of https://reload.dk/hvem-er-vi  are slighter wider than the rest of the site. How do I fix this? 

Thanks in advance! 

Can you show some screenshots where you want to fix?

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

The 2 above pages look good on my end. Do they still need help?

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
On 3/10/2023 at 2:12 AM, Klintholm said:

They do. The problem is still there. It's a slight misalignment. 17px, I presume. 

With Yellow Box, add this to Design > Custom CSS

/* align yellow box mobile */
@media screen and (max-width:767px) {
[data-section-id="632c3c935266776cbb1ce9c9"] .content-wrapper {
    padding-left: 17px !important;
    padding-right: 17px !important;
    width: calc(~"100% - 34px") !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
  • Solution
22 hours ago, tuanphan said:

With Yellow Box, add this to Design > Custom CSS

/* align yellow box mobile */
@media screen and (max-width:767px) {
[data-section-id="632c3c935266776cbb1ce9c9"] .content-wrapper {
    padding-left: 17px !important;
    padding-right: 17px !important;
    width: calc(~"100% - 34px") !important;
}
}

 

Sorry, I realize now my problem is twofold... 

1) that the yellow box and the accordion on the https://reload.dk/jobs is not only a problem on mobile. It also misaligns on desktop. I've used these snippets to fix everything else on the site, but somehow they don't get these two on "jobs" site.

 

body[id*="item-"] .sqs-block.accordion-block {
  margin-left: 17px;
  margin-right: 17px;
}

body[id*="item-"] .sqs-block.html-block.sqs-background-enabled {
  margin-left: 17px;
  margin-right: 17px;
}



2) The carousel at the bottom of https://reload.dk/hvem-er-vi  is misaligned on mobile. I don't know why? EDIT: NEVERMIND I FIXED IT WITH YOUR CODE. 


Still need help with issue 1) here, tho. Thank you in advance!


UPDATE: I fixed a lot of the problems by upgrading the boxes to Fluid Engine! 

Edited by Klintholm
Link to comment
On 3/13/2023 at 2:30 PM, Klintholm said:

Sorry, I realize now my problem is twofold... 

1) that the yellow box and the accordion on the https://reload.dk/jobs is not only a problem on mobile. It also misaligns on desktop. I've used these snippets to fix everything else on the site, but somehow they don't get these two on "jobs" site.

 

body[id*="item-"] .sqs-block.accordion-block {
  margin-left: 17px;
  margin-right: 17px;
}

body[id*="item-"] .sqs-block.html-block.sqs-background-enabled {
  margin-left: 17px;
  margin-right: 17px;
}



2) The carousel at the bottom of https://reload.dk/hvem-er-vi  is misaligned on mobile. I don't know why? EDIT: NEVERMIND I FIXED IT WITH YOUR CODE. 


Still need help with issue 1) here, tho. Thank you in advance!


UPDATE: I fixed a lot of the problems by upgrading the boxes to Fluid Engine! 

Did you solve all or still need help?

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

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.