Jump to content

Facebook Video Embed block not sizing correctly on mobile

Recommended Posts

Site URL: https://www.livingfabulously.com/wise-women-in-business

Hi there I have used the embed block for a live Facebook video in a section on an Index. It's fine on desktop however on mobile while the video size is responsive there is a huge gap between the code block and the text below.

This is the code provided by Facebook to embed a live video

<iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Fgetonlinequickly%2Fvideos%2F292938888794253%2F&show_text=false&width=733&height=412&appId" width="733" height="412" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media" allowFullScreen="true"></iframe>

Anyone know what code I can edit / add to this that will stop this big white space below?

Index section on smartphone view.png

Link to comment

Add to Home > Design > Custom CSS

@media screen and (max-width:640px) {
div#block-yui_3_17_2_1_1596082723574_4344 iframe {
    height: auto;
}
}

 

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
  • 1 month later...

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.