HarveyAquino Posted February 28, 2021 Share Posted February 28, 2021 Site URL: https://www.harveyaquino.com/ Hi! I would like for my banner image to display in full width in mobile view without expanding the image itself. I've tried using this code, /* mobile screens */ @media only screen and (max-width: 640px) { #block-yui_3_17_2_1_1613893986644_10835{ width: 250%; } } and got this, However, when you zoom out in mobile view, you get this: Thank you all for your help! Link to comment
tuanphan Posted March 11, 2021 Share Posted March 11, 2021 On 2/28/2021 at 12:31 PM, HarveyAquino said: Site URL: https://www.harveyaquino.com/ Hi! I would like for my banner image to display in full width in mobile view without expanding the image itself. I've tried using this code, /* mobile screens */ @media only screen and (max-width: 640px) { #block-yui_3_17_2_1_1613893986644_10835{ width: 250%; } } and got this, However, when you zoom out in mobile view, you get this: Thank you all for your help! It looks like you solved this by using Image Block? 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
HarveyAquino Posted March 11, 2021 Author Share Posted March 11, 2021 3 hours ago, tuanphan said: It looks like you solved this by using Image Block? I am using an image block. However, when you zoom out in mobile view, the image is visibly enlarged hence the big space beside the page content. Link to comment
HarveyAquino Posted March 11, 2021 Author Share Posted March 11, 2021 I guess what I'm trying to do is for the image to be cut off in mobile portrait view so that when scrolling there is no extra room to zoom out to. Link to comment
tuanphan Posted March 12, 2021 Share Posted March 12, 2021 Add to Design > Custom CSS @media screen and (max-width:767px) { 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!) Link to comment
Jasonb2792 Posted March 24, 2021 Share Posted March 24, 2021 I am having the sam Issue. www.lazyjackslagos.com when i have a banner image on homepage it zooms in way to much on mobile and crops the image Link to comment
HarveyAquino Posted March 28, 2021 Author Share Posted March 28, 2021 On 3/12/2021 at 6:08 PM, tuanphan said: Add to Design > Custom CSS @media screen and (max-width:767px) { html, body { overflow-x: hidden; } } Thanks! It worked! 🙂 Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.