shawnana Posted December 3, 2019 Posted December 3, 2019 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!!!
tuanphan Posted December 5, 2019 Posted December 5, 2019 Have you solved the problem yet? 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!)
e2astudio Posted December 5, 2019 Posted December 5, 2019 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; } }
Bailante Posted July 10, 2020 Posted July 10, 2020 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!
tuanphan Posted July 11, 2020 Posted July 11, 2020 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!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.