Shopify themes, liquid, logos, and UX
Hi! I cannot get my iframed google form to be centered on mobile view. It is centered on desktop. Code:
<div><meta charset="utf-8" /><img src="https://cdn.shopify.com/s/files/1/0457/4471/7981/files/Screen_Shot_2021-02-11_at_4.56.22_PM_480x480...." alt="" width="451" height="134" style="display: block; margin-left: auto; margin-right: auto;" /> </div>
<div style="text-align: center;"><iframe src="https://docs.google.com/forms/d/e/1FAIpQLScMY6W8O7aPRUKV0PQaFgUzijbMoraA1vJQ_Cx5RxKztzFY5A/viewform?..." width="640" height="1356" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe></div>
^^ Desktop View
^ ^ Mobile View
I've tried changing the float to left and text to left, but hasnt helped...
Please share your website URL and password if any. I will check and provide a solution here.
Thanks!
Please add the following code at the bottom of your assets/theme.scss.liquid file
iframe{ width: 100%; height: auto }
Hope this helps.
Thanks!
Please accept as a solution so others can take benefits.
I added the code iframe{ width: 100%; height: auto } at the bottom of my Assets/theme.scss.liquid
It worked, but now I have to scroll through the Google form as it's embedded (very small) instead of just scrolling down on the page.
Hi Dmwwebartian, I'm having the same issue with my dawn theme but I couldn't find where in the coding files. Could you please help me?
Thanks
User | RANK |
---|---|
136 | |
94 | |
90 | |
61 | |
53 |
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By