Google form not centered on Mobile View

Eweisfeld
Tourist
11 0 3

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>

Screen Shot 2021-02-16 at 8.21.09 AM.png

 ^^ Desktop View

IMG_5090.jpeg

^ ^ Mobile View

 

I've tried changing the float to left and text to left, but hasnt helped...

0 Likes
dmwwebartisan
Shopify Partner
6693 1566 2034

@Eweisfeld 

Please share your website URL and password if any. I will check and provide a solution here.

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
0 Likes
Eweisfeld
Tourist
11 0 3
resmrkt.com thanks!
dmwwebartisan
Shopify Partner
6693 1566 2034

@Eweisfeld 

Please add the following code at the bottom of your assets/theme.scss.liquid file

iframe{ width: 100%; height: auto }

Hope this helps.

Thanks! 

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
Eweisfeld
Tourist
11 0 3

It worked! Thanks!

dmwwebartisan
Shopify Partner
6693 1566 2034

@Eweisfeld 

Please accept as a solution so others can take benefits.

 

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
0 Likes