Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1221922

    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.

    View post on imgur.com

    #1221970

    could be too many things – best would be to see the page it concerns

    #1223758

    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

    #1223866

    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:

    https://www.ostraining.com/blog/coding/responsive-videos/

    #1223876

    Hi,

    You are welcome! And thank you for sharing your solution :)

    Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Vimeo embeds have too much padding above and below’ is closed to new replies.