Resizing YouTube embedded video – width and height ratio

To maintain reasonable proportions when resizing embedded YouTube video’s, multiply your desired height by

1.2354651162790697674418604651163

To get the correctly proportioned width.

For example: the original width of 425 pixels and height of 344 pixels resizes to 185px by 150px. The HTML fragment below shows you where to change the width and height values (change occurrences of the numbers 185 and 150).

1
2
3
4
<object width="185" height="150">
<param name="movie" value="http://www.youtube.com/v/~blah blah blah~"</param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param></object>

Posted in Tips | 1 Comment »

One Response to “Resizing YouTube embedded video – width and height ratio”

  1. Lowell Herr Says:

    I am trying to see how your plugin, “Those Were The Days” works. I cannot see the “Featured Post” you refer to on your blog.

    Lowell Herr

Have your say