Hi,
I´ve included a video on my blog entry https://www.fitgutschein.de/interview-moeller-physiotalk/ and have a urgent question (as the video is already live :-)
The video scaling s fine on a big screen, but e.g. on iPad it shows broad black bars above a underneath the video. What do I have to adjust in the embedding code in order to have no such black bars on any device / screen size? currently the code is:
<iframe src=”//www.youtube.com/embed/nIZOjRlDDbE?rel=0″ width=”1200″ height=”500″ frameborder=””0″” allowfullscreen=”allowfullscreen”></iframe>
I´ve tried e.g. different size values but did not get a proper result.
It would be great if you can give me a hint!
Thx a lot & best regards Tilman
Hey Tilman,
You could try a code like this:
<div id="some-video">
<iframe id='iframe2' src="Mypage.aspx" frameborder="0" style="overflow: hidden; height: 100%;
width: 100%; position: absolute;" height="100%" width="100%"></iframe>
</div>
and then control the iframe size via the parent container.
https://www.h3xed.com/web-development/how-to-make-a-responsive-100-width-youtube-iframe-embed
If you need further assistance please let us know.
Best regards,
Victoria
Dear Victoria
thx, but this is too much html specific stuff for me :-)
For pages I used the avia framework, but only for blog entries I di not in order to customize the “read more” option. But then I´ll leave it as it is.
Cheers Tilman