Access4all / EPUB

3 stars 1 forks source link

YouTube videos don't have proper dimensions #59

Closed jmuheim closed 9 years ago

jmuheim commented 9 years ago

When copy&pasting a YouTube link, the iframe doesn't have proper dimensions: width="100%" and height="auto" doesn't automatically expand the height, because the content of the iframe is not known by the iframe itself.

Some inspiration here: http://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php

qtnc commented 9 years ago

I have copied the code coming from the website given. You may try again to see if it changed something. It will only work in a fresh new book.

jmuheim commented 9 years ago

It's looking better now, it's not 100% width anymore. It's a bit small, but it doesn't look like a bug anymore, so I will close this.

Still, you should look into a solution for offering containers like left50, right33, etc., as you offer on adding images.