MyBB Community Forums
How to add space around [video] tag? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Themes (https://community.mybb.com/forum-103.html)
+---- Forum: Theme Development (https://community.mybb.com/forum-105.html)
+---- Thread: How to add space around [video] tag? (/thread-195839.html)



How to add space around [video] tag? - SvenUilhoorn - 2016-07-19

For example:

[video=youtube]https://www.youtube.com/watch?v=Pu4R2_Zehm0[/video]


It doesn't automatically put some margin to the top and bottom.

Quick fix?


RE: How to add space around [video] tag? - Ashley1 - 2016-07-19

See template video_youtube_embed

You can try setting marginheight attribute on <iframe> - not supported in HTML5 though.

http://www.w3schools.com/tags/tag_iframe.asp


RE: How to add space around [video] tag? - SvenUilhoorn - 2016-07-21

Thanks, added style="margin:0px;padding:0px;" but that doesn't change enough; it now adds one line break more than I want.

Marginheight then isn't really a solution for me if there's no combination of solutions that works across everything.

The template is located in the "Video MyCode Templates", if someone can't find it.