Guest Posted April 23, 2023 Posted April 23, 2023 Hi, I tried looking for a solution elsewhere but couldn't find one that worked for me. I have these amazing maps embedded on my new/work in progress website, however on mobile they run over the edge of the window. If there a way to force these embeds into the screen on mobile? I've attached a mobile and desktop screenshot below for comparison. Thanks in advance :)
tuanphan Posted April 24, 2023 Posted April 24, 2023 Can you share link to page where you embed this? We can check easier 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!)
Guest Posted April 25, 2023 Posted April 25, 2023 My apologies, can't believe I forgot such an important part of my post 😅 Right here: https://www.spacefromspace.com/ Thanks again!
tuanphan Posted April 26, 2023 Posted April 26, 2023 Add to Design > Custom CSS /* Map on mobile */ @media screen and (max-width:767px) { div#block-yui_3_17_2_1_1679354939610_11121 div { width: 100% !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!)
Guest Posted April 26, 2023 Posted April 26, 2023 (edited) Thank you so much for your help! Is there a way to apply this to all pages? I have one of those embeds for each one of the projects in my galleries: https://www.spacefromspace.com/gallery2023https://www.spacefromspace.com/gallery2022https://www.spacefromspace.com/gallery2021 Edited April 26, 2023 by harryspacefromspace
Solution tuanphan Posted April 29, 2023 Solution Posted April 29, 2023 On 4/26/2023 at 8:33 AM, tuanphan said: Add to Design > Custom CSS /* Map on mobile */ @media screen and (max-width:767px) { div#block-yui_3_17_2_1_1679354939610_11121 div { width: 100% !important; } } You can repeat the code, use this tool to find block id (div#bloc.....11121 is block id) https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en If you still can't solve it, let me know, we will give the full code 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!)
Guest Posted May 15, 2023 Posted May 15, 2023 My apologies for such a late reply! I appreciate all of your help, that has fixed my issue. Thank you!
Tom_Fryer_Counselling Posted April 5 Posted April 5 Hello, I'm having a very similar problem at tomfryercounselling.com, I have a really nice Google Maps embedded on my website, and it looks lovely on the Desktop, but on the Mobile view it stretches too far to the right, which messes up the whole page. I've tried inserting the above code in Design > Custom CSS but it hasn't seemed to work.
tuanphan Posted April 7 Posted April 7 On 4/5/2024 at 11:23 PM, Tom_Fryer_Counselling said: Hello, I'm having a very similar problem at tomfryercounselling.com, I have a really nice Google Maps embedded on my website, and it looks lovely on the Desktop, but on the Mobile view it stretches too far to the right, which messes up the whole page. I've tried inserting the above code in Design > Custom CSS but it hasn't seemed to work. You can use this code to Website > Website Tools > Custom CSS @media screen and (max-width:767px) { iframe[src*="google.com/maps"] { width: 100% !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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment