Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
BevR

Facebook Video Embed block not sizing correctly on mobile

Question

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

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

Add to Home > Design > Custom CSS

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

 


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...