Jump to content

iframe Sizing

Go to solution Solved by tuanphan,

Recommended Posts

On (facar.org/media) the iframe block sizing looks good on a computer, but on mobile there is a very awkward space on the bottom of the block. I attempted to set the height at 100%, but iframe wouldn't respond

I was wondering if there was some CSS I could use to get the sizing of the iframe block to 100%, so that I could remove the extra space on mobile.

Thanks for the help,

Caden

Link to comment
  • Replies 2
  • Views 366
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

You mean this space?

image.thumb.png.860bacc5130f86ce54d1718c308b6191.png

Try this to Website Tools > Custom CSS

@media screen and (max-width:767px) {
.fe-66b24735385b0c50c7ff4343 {
    grid-template-rows: repeat(15,minmax(24px, auto)) !important;
}

div#block-yui_3_17_2_1_1723070578074_4051 iframe {
    height: 900px !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.