×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CSS
Posted by: calaverse
Added: Jan 23, 2015 11:19 PM
Views: 16
see: http://avexdesigns.com/responsive-youtube-embed/
  1. //see: http://avexdesigns.com/responsive-youtube-embed/
  2. .media_embed {
  3.     position: relative;
  4.     padding-bottom: 56.25%;
  5.     padding-top: 30px;
  6.     height: 0;
  7.     overflow: hidden;
  8. }
  9.  
  10. .media_embed iframe, .media_embed object, .media_embed embed {
  11.     position: absolute;
  12.     top: 0;
  13.     left: 0;
  14.     width: 100%;
  15.     height: 100%;
  16. }