Scaling embedded YouTube videos...

I posted my first blog entry with embedded video this morning. As you’d expect I simply copied the supplied embed code from the relative video on YouTube (with customised colour of course) and pasted it in my post*. As my blog text column is only 350pixels wide and YouTube’s default video width is 425pixels this meant that I had to resize the video whilst maintaining the videos width to height ratio. How? Easy...

In your YouTube embed code you will see TWO instances of:

width="425" height="344"

Simply change the BOTH the instances to the width and height you require. In my case the width="350". As the ratio of the YouTube window seems to be roughly 1.2:1 to find the height simply divide your width by 1.2

width / 1.2 = height
350 / 1.2 = 291.666 (I rounded down to 291)

Once you’ve plugged in your new numbers the video window will be nicely resized.

J

* Therein lay some problems leading me to have to download WLW Beta – but more on this later.

Comments

Marisol Hogatt

Great post, here is my blog.

Posted on May 25, 2010 02:22 by Marisol Hogatt

Jeannette Millan

This is acquiring a bit far more subjective, but I much choose the Zune Marketplace. The interface is colorful, has much more flair, and some cool features like 'Mixview' that let you quickly see associated albums, songs, or other users connected to what you're listening to. Clicking on 1 of individuals will center on that item, and one more set of "neighbors" will occur into view, allowing you to navigate close to exploring by similar artists, songs, or users. Speaking of users, the Zune "Social" can be fantastic enjoyable, letting you come across others with shared tastes and becoming buddies with them. You then can listen to a playlist produced based on an amalgamation of what all your friends are listening to, which is also enjoyable. Those concerned with privacy will probably be relieved to learn you are able to prevent the public from seeing your individual listening habits if you so choose.

Posted on May 31, 2010 02:51 by Jeannette Millan

Margarito Harvie

I just subscribed to your news feed after reading this item! Could you say more about the topic in future posts?

Posted on July 4, 2010 14:45 by Margarito Harvie

Elden Schlauch

Fantastic piece, thanks. Would you explain the second part in a little more detail please?

Posted on July 5, 2010 15:05 by Elden Schlauch

Alex Bundley

I just subscribed to your rss feed after reading this piece! Can you publish more regarding this topic in future posts?

Posted on July 5, 2010 15:05 by Alex Bundley

Johnathan Perreira

This is cool! How did you learn about this when you were a newbie?

Posted on July 7, 2010 02:23 by Johnathan Perreira

Nan Wauson

I read about this on a different site and couldn't get the gist of it, but this article makes it easier to understand. Appreciate it!

Posted on July 7, 2010 02:24 by Nan Wauson

setting up salon

This is excellent! How did you learn about this when you were new to it?

Posted on July 11, 2010 14:10 by setting up salon

salon brochures

Fascinating piece of writing, thanks. Could you explain the second part in additional detail please?

Posted on July 11, 2010 14:10 by salon brochures

Delia Hubby

I found a similar post on a different site and couldn't get the gist of it, but this post makes it clearer to me now. Cheers!

Posted on July 12, 2010 20:27 by Delia Hubby

Shaunte Tian

I was looking for information about this on Yahoo and chanced on your piece. I found it to be well explained. Thanks

Posted on July 12, 2010 20:28 by Shaunte Tian

Sid Haber

I had a site on this subject, but I got so much spam I had to shut it. You appear to be better at weeding out the spam! Congratulations!

Posted on July 13, 2010 05:24 by Sid Haber

Voucher Code

Just to let you know... your site looks extremely unusual in Firefox on a mac

Posted on July 13, 2010 05:24 by Voucher Code

Flirting

I saw a news item about that on TV at the weekend. Thanks for explaining it more thoroughly

Posted on July 14, 2010 03:52 by Flirting

Ricki Paradis

Great article, thanks. Could you clarify the second section in a little more detail please?

Posted on July 14, 2010 03:52 by Ricki Paradis

platinum diamond rings

I watched something about that on TV at the weekend. Thanks for covering it in greater depth

Posted on July 15, 2010 19:51 by platinum diamond rings

platinum diamond rings

Can I quote you in my report for school?

Posted on July 15, 2010 19:51 by platinum diamond rings

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading