Jump to content

Mobile > Summary Block > Background Not Fitting to Device Width

Recommended Posts

Posted

I need help figuring out how to keep the summary block background on this page from being wider than the viewport. It took me forever how to figure out how to get the background to be full-width on desktop. It seems to all be shaping up except for the right side extended past the viewport on mobile devices. I would greatly appreciate any insight. Thank you!!!

Screen Shot 2019-12-02 at 6.49.28 PM.png

  • Replies 4
  • Views 799
  • Created
  • Last Reply
Posted

You can wrap your current Custom CSS in a media query that will render your changes only on desktop. 

@media screen and (min-width: 800px) {
  #block-yui_3_17_2_1_1574400161847_5399 .summary-block-wrapper {
    background: #e4e4e4;
    margin-left: -300px;
    margin-right: -300px;
    margin-bottom: 0px;
    padding-bottom: 3vw;
    padding-left: 300px;
    padding-right: 300px;
    margin-top: 0;
  }
}

 

  • 7 months later...
Posted

Hi @tuanphan! (Or maybe someone else can help with that?

 

I have the same issue. On quite an old template, which I can't migrate from - mobile version has this weird empty space to the write of the website... Website loads normally, but you can move it to the left (on mobile only), if you try to swipe right to left. Not quite sure how to get rid of that...  https://www.yuriyyurchuk.com/  

 

Would really appreciate some help here! Thank you!

Untitled.jpg

Posted
On 7/11/2020 at 12:59 AM, Bailante said:

Hi @tuanphan! (Or maybe someone else can help with that?

 

I have the same issue. On quite an old template, which I can't migrate from - mobile version has this weird empty space to the write of the website... Website loads normally, but you can move it to the left (on mobile only), if you try to swipe right to left. Not quite sure how to get rid of that...  https://www.yuriyyurchuk.com/  

 

Would really appreciate some help here! Thank you!

Add to Home > Design > Custom CSS

@media screen and (max-width:640px) {
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!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.