n1k1c4

html5 video resize flex

Nov 22nd, 2014
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.36 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>Document</title>
  6.     <style>
  7.         body {
  8.             margin: 0;
  9.             padding: 0;
  10.         }
  11.  
  12.         .video {
  13.             max-width: 1080px;
  14.             min-width: 600px;
  15.         }
  16.     </style>
  17. </head>
  18. <body>
  19.     <div class="video">
  20.         <video src="rope.webm" width="100%" height="100%" autoplay loop muted></video>
  21.     </div>
  22. </body>
  23. </html>
Advertisement
Add Comment
Please, Sign In to add comment