×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: HTML
Posted by: Gábor Papp
Added: Feb 27, 2017 8:12 PM
Views: 15
Tags: video youtube
  1. <div class="container">
  2. <iframe src="//www.youtube.com/embed/yCOY82UdFrw" frameborder="0" allowfullscreen class="video"></iframe>
  3. </div>
  4.  
  5. .container {
  6.     position: relative;
  7.     width: 100%;
  8.     height: 0;
  9.     padding-bottom: 56.25%;
  10. }
  11. .video {
  12.     position: absolute;
  13.     top: 0;
  14.     left: 0;
  15.     width: 100%;
  16.     height: 100%;
  17. }