Jump to content

Make iframe Embedded Code Block Responsive

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Site URL: https://www.theryeroom.com/sonido-booking

Hi there,

I'm having issues making this iframe code box responsive on my website. Width seems to be okay but height isn't filling out the page causing the user to scroll. I have tried a few different approaches via code I found on this forum with no luck. One version I was able to change the look to what I'm going for but it messed with the header and footer. Hoping you are able to help me! Thanks so much!

Posted
10 hours ago, tuanphan said:

Add to Code Block

<style>
iframe[src*="mysonido"] {
    height: 900px !Important;
}
@media screen and (max-width:640px) {
iframe[src*="mysonido"] {
    height: 1200px !Important;
}
}
</style>

 

Thank you so much! That was able to fix it!

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.