1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

CSS: Resizing YouTube and HTML5 videos proportionally using CSS for responsive web design

  1. Clicks today:
    0
  2. Clicks this month:
    0
  3. Overall rating:
    0.00/5

CSS » Basics — almost 4 years ago
This article demonstrates how video can be resized automatically to fit the width of its container using only CSS with appropriate aspect ratio. The current solution works for any video which is set in iframe, embed, object or video tags.

Comments

Your Comment

You must be logged in to post a comment.