Home › Forums › CSS › Stretch YouTube Videos To Fit the Browser Window, Better Than Full Screen but I can’t get it to work › Re: Stretch YouTube Videos To Fit the Browser Window, Better Than Full Screen but I can’t get it to work
I made a youtube player script which farms a log file for youtube videos a while ago. I had your issue.
Stop using object as a way to embed the youtube, there is a new way.
Examine the code below, the ‘xxxxxxxxxx’ is the video ID.
I hope that helps, that will fit to the screen, just change the body margins to center it or make it smaller. Look at the css and html on the script I made if you’re stuck.
#Edit: If It says no data received it’s a transmission error with some browsers, just hit F5 and it will load. (thats for my site, not the suggested youtube embed code)