Well, I know that they asked him several times, but I did not find a cross-browser solution and did not understand it. :-(
I have this code to scale the video to 100% of the browser width:
<div id="flashposition"><div id="flashvimeo"class="vimeo">HereIsTheVideo</div></div>
and this css:
#flashposition { position: relative; padding-bottom: 56.25%; padding-top: 0px; height: 0; z-index:30; display: block; overflow:hidden; } #flashvimeo object, embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
It works, but it cuts off the excess height at the bottom, but I would like it to be centered, so the excess height of the video is cut halfway up and down.
Any ideas that are safe and also work in IE7? Or is this the only way to do this in js / jquery and recalculate the height / width due to the size of the browser window, as here http://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php ?
javascript jquery css
suri
source share