June 8, 2011 by Chris Coyier This article was originally written on September 2, 2010 and is now being updated to be mo' better. It now handles YouTube videos of different aspect ratios, the new iframe embed method, and with more efficient scripts. And now a jQuery plugin called FitVids.js that handles the vast majority of videos. The code that YouTube gives you to embed a video is now a very simple iframe. Here's an example: iFrames,
Read full article from Fluid Width YouTube Videos | CSS-Tricks
No comments:
Post a Comment