VideoJS – full width

So,

I’m deploying a VideoJS on a website since HTML5 player player doesn’t has sound control…. I want the player to have 100% of the div’s width…. any normal attempt – css, inline css blablabla didn’t worked….
From several solutions that I’v found on the interwebs 🙂 this was the one that worked out… THIS ONE! –> http://jsfiddle.net/alexbell/Zs5WB/

It was posted on VideoJS – Auto height based on aspect ratio #771  by baloneysandwiches.
On his post there’s a reference for a 2009 article on A List Apart – Creating Intrinsic Ratios for Video.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.