Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
shawnana

Mobile > Summary Block > Background Not Fitting to Device Width

Question

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

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0

Have you solved the problem yet?


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (promote the establishment of free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0

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;
  }
}

 

Share this post


Link to post
  • 0

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

Share this post


Link to post
  • 0
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;
}
}

 


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (promote the establishment of free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...