O'Reilly logo
  • dafrina thinks this is interesting:

Unfortunately, this style doesn’t do anything to help with videos that are embedded using iframes (the most common way to add a YouTube or Vimeo video to a page). For embedded YouTube videos, use Dave Rupert’s and Chris Coyier’s FitVids JavaScript program: http://fitvidsjs.com. This small bit of JavaScript code makes sure most embedded videos scale up or down to fit their container.

From

Cover of CSS3: The Missing Manual, 3rd Edition

Note

iframe