Hannahmay123 Posted August 8, 2021 Share Posted August 8, 2021 Site URL: https://hannahmindfulmoney.squarespace.com/ Hi, On the site https://hannahmindfulmoney.squarespace.com/ password: hannahmindfulmoney I have embedded a code block with a google form but when I go on mobile its not responsive and is over flowing into the X axis which I have hidden. Do I need to ask the client to change the pixel ratio? Or is it a coding issue? Thanks! Link to comment
iamdavehart Posted August 8, 2021 Share Posted August 8, 2021 when you've embedded it, you've specified the width of the iframe to be 700 pixels. find the bit that says width="700" change that to width="100%" and you should be fine. The code block does have a bit of padding on it which you probably don't want in your mobile version as this will probably upset the way the form fills the width, so you might also want to add this code to your code block (put it above the iframe bit and you'll be fine, if not add it to the custom css part of your site from the main Design menu without the style tags around it). <style> @media screen and (max-width: 767px) { #block-yui_3_17_2_1_1628417923165_5434 { padding:0; } } </style> tuanphan 1 Dave Hart. Software/Technology Consultant living in London. buymeacoffee Link to comment
Hannahmay123 Posted August 9, 2021 Author Share Posted August 9, 2021 @iamdavehart thankyou so much! Link to comment
JennaHikes Posted August 10, 2022 Share Posted August 10, 2022 On 8/8/2021 at 2:19 PM, iamdavehart said: when you've embedded it, you've specified the width of the iframe to be 700 pixels. find the bit that says width="700" change that to width="100%" and you should be fine. The code block does have a bit of padding on it which you probably don't want in your mobile version as this will probably upset the way the form fills the width, so you might also want to add this code to your code block (put it above the iframe bit and you'll be fine, if not add it to the custom css part of your site from the main Design menu without the style tags around it). <style> @media screen and (max-width: 767px) { #block-yui_3_17_2_1_1628417923165_5434 { padding:0; } } </style> Thanks for your response to this. I followed your instructions and while changing the width to 100% does fix the mobile issues, the desktop version is now very narrow. In added your bit of style code, but it doesn't seem to make a difference. Any help is appreciated. Cheers, Jenna www.dwellbodywork.com Link to comment
tuanphan Posted August 11, 2022 Share Posted August 11, 2022 16 hours ago, JennaHikes said: Thanks for your response to this. I followed your instructions and while changing the width to 100% does fix the mobile issues, the desktop version is now very narrow. In added your bit of style code, but it doesn't seem to make a difference. Any help is appreciated. Cheers, Jenna www.dwellbodywork.com Which page are you referring to? I don't see it on homepage Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment