Title: iframe video or margin spacing
Last modified: February 8, 2019

---

# iframe video or margin spacing

 *  Resolved [Dorus](https://wordpress.org/support/users/drus2000/)
 * (@drus2000)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/iframe-video-or-margin-spacing/)
 * Hi,
 * Love this plugin. But I have some problems with margin above (and maybe under)
   iframe elements in the slider. I have pictures and a vimeo video embed in an 
   iframe element of the same size. But the video ends up much lower then the images.
 * Could this be a problem with the theme twentynineteen? If so can I add some CSS
   to fix this?
 * Any help would be very welcome.
    -  This topic was modified 7 years, 8 months ago by [Dorus](https://wordpress.org/support/users/drus2000/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fiframe-video-or-margin-spacing%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [simonpedge](https://wordpress.org/support/users/simonpedge/)
 * (@simonpedge)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/iframe-video-or-margin-spacing/#post-11187155)
 * Well for your “iframe” code you have:
    `<iframe src="https://player.vimeo.com/
   video/192762016?title=0&byline=0&portrait=0" width="600" height="338" frameborder
   ="0" allowfullscreen="allowfullscreen"></iframe>`
 * Change the ‘**height**‘ attribute of the above iframe code.
 *  Thread Starter [Dorus](https://wordpress.org/support/users/drus2000/)
 * (@drus2000)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/iframe-video-or-margin-spacing/#post-11187518)
 * Thank you very much for the quick reply!
 * It did not fix my problem. Changing the height strangely did not effect the height
   of the video iframe itself but did effect the height of the iframe in the slider
   as you suggested. So it kind of worked as you said. But on other screens or smaller
   windows it got all wrong again.
 * This got me thinking that I needed a responsive size, and vimeo provides the 
   responsive embedding code with its sharing options. So my problem is fixed now!
 * Have a good day

Viewing 2 replies - 1 through 2 (of 2 total)

 The topic ‘iframe video or margin spacing’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slide-anything.svg)
 * [Slide Anything - Responsive Content / HTML Slider and Carousel](https://wordpress.org/plugins/slide-anything/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slide-anything/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slide-anything/)
 * [Active Topics](https://wordpress.org/support/plugin/slide-anything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slide-anything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slide-anything/reviews/)

## Tags

 * [alignment](https://wordpress.org/support/topic-tag/alignment/)
 * [iframe](https://wordpress.org/support/topic-tag/iframe/)
 * [margin](https://wordpress.org/support/topic-tag/margin/)
 * [spacing](https://wordpress.org/support/topic-tag/spacing/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dorus](https://wordpress.org/support/users/drus2000/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/iframe-video-or-margin-spacing/#post-11187518)
 * Status: resolved