Menu
I’ve got a div that contains a videoplayer. I want that div to have style=”width: 100%”, and I want the height to be in proportion to that.
So, to clarify. The video is 400 x 200 px. But I want to stretch the width to 100% of the size of the surrounding div, and the height shall not be 100%, but in proportion to the width.
Anyone got an idea on how to solve this? Is JavaScript the solution, or can this be done by CSS?
Thanks, Henrik