YouTube Embedding

SEOzack

Senior Member
Joined
Dec 12, 2018
Messages
1,159
Reaction score
1,119
Hi All.

Shouldn't there be a YouTube section in the social media subforum?

Anyway, how are you guys embedding your YouTube videos on your websites?

ATM i am just copying the embed code, but if you go on my website via mobile the embedded video is quite large!

Is there a way to make it reactive to mobile and web?

Thanks!
 
when ever i paste the embed code in my blog i change the width="100" and height="100" this helps mee.
 
Since your making request, add a Reddit subforum under Social Media as well ;)
 
Thread Moved​
giphy.gif

 
if you just embed you are restricted to widths in the code.. you can try using some css.. this is a simple way to do it, I used it and it works.

avexdesigns.com/responsive-youtube-embed/
 
Emebed code you copy from youtube is only for desktop users, to make it responsive for mobiel users you need to add custome code like the one below !
HTML:
<div style="width: 100%; height: 0px; position: relative; padding-bottom: 52.969%;"><iframe src="youtube_link" frameborder="0" width="100%" height="100%" allowfullscreen style="width: 100%; height: 100%; position: absolute;"></iframe></div>
 
Back
Top