![](https://secure.gravatar.com/avatar/06aacb2f1dbed200347db0a003fc6179?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
Percent width, auto height? Like <video>?
Hi ...
I've been doing experiments with JW Player to automatically height itself when given a percent width. I've discovered the <video> tag can do this with the latest browsers IE, FF, and Safari. I don't know how <video> pulls this off, but it's a great capability.
You can see what I'm trying to do at http://kilk.com. Resize the browser window. This is the code I'm using here:
bc.. <video controls="controls" style="width:99%;" poster="caboose.jpg">
<source src="caboose.mp4" type="video/mp4" />
<source src="caboose.webm" type="video/webm" />
</video>
I'd like to use JW Player because of it's UI and great cross browser support. I'll purchase it. Minimally I'd like to know if I can achieve the above affect rather easily and how I could do this. I'd be happy to have the above effect with only current browsers as I do now -- and falling back to a fixed size for older installations is fine.
Thanks in advance!
Erik