Jump to content

Make iframe Embedded Code Block Responsive

Go to solution Solved by tuanphan,

Recommended Posts

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!

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

Add to Code Block

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

 

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
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!

Link to comment

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.