Tagged: padding, vimeo embed
When I embed a Vimeo video on a product page using Enfold, the Vimeo embed has a lot of empty space/ padding above it and below it.
How can I make it so that the Vimeo embed shows underneath the text with a small gap, rather than have a large gap between the last senetnce and the video beneath it?
I’m including a screenshot of how it looks presently.
could be too many things – best would be to see the page it concerns
Hi,
Sorry for the late reply!
That seems to be related to your iframe. Height is set to “360”, setting it to “250” should solve the issue :)
Best regards,
Yigit
Thank you for your suggestion; it worked great. :)
Additionally, I found a blog post about creating a “responsive video container” CSS class for the embed code.
I’ve implemented that code across my Enfold theme and it works perfectly to fill the available width with the embed, with no extra height padding.
Here’s the link, in case others find this thread and want to achieve similar results: