How to make iframes in one column when viewed in mobile view

Solved

How to make iframes in one column when viewed in mobile view

LianCC
Tourist
3 0 1

I have inserted several iframes of Amazon via html. In desktop view it looks okay, but when viewed in mobile the iframes do not align. I would want to make them in one column when viewed via mobile like this: https://upliftfitnutrition.com/best-non-toxic-products/

 

I already tried flexbox, @media screen code, div class but nothing works. Can someone help me? Thanks.

LianCC_1-1681981595422.png

LianCC_2-1681981741932.png

 

 

Accepted Solution (1)
saim007
Shopify Partner
609 74 104

This is an accepted solution.

Hello @LianCC Please copy and paste below CSS code in your theme.liquid file above </body>

<style>
@media(max-width: 767px){
center {
    display: flex;
    flex-direction: column;
    align-items: center;
}
}
</style>

Please let me know if works and mark as solve!

Saim | Shopify Partner Expert

Was I helpful?

Buy me a Coffee

🙂
Hire me   to unlock the full potential of your e-commerce store 🙂

View solution in original post

Replies 4 (4)

saim007
Shopify Partner
609 74 104

@LianCC Please provide store URL so I can check.

Saim | Shopify Partner Expert

Was I helpful?

Buy me a Coffee

🙂
Hire me   to unlock the full potential of your e-commerce store 🙂
saim007
Shopify Partner
609 74 104

This is an accepted solution.

Hello @LianCC Please copy and paste below CSS code in your theme.liquid file above </body>

<style>
@media(max-width: 767px){
center {
    display: flex;
    flex-direction: column;
    align-items: center;
}
}
</style>

Please let me know if works and mark as solve!

Saim | Shopify Partner Expert

Was I helpful?

Buy me a Coffee

🙂
Hire me   to unlock the full potential of your e-commerce store 🙂
LianCC
Tourist
3 0 1
Yup! That did the trick! Thank you so much! 💖