Skip to content

Instantly share code, notes, and snippets.

@spencerthayer
Created May 2, 2014 18:12
Show Gist options
  • Save spencerthayer/11482194 to your computer and use it in GitHub Desktop.
Save spencerthayer/11482194 to your computer and use it in GitHub Desktop.
html, body {
width: 100%;
height: 100%;
margin: 0px;
border: 0;
overflow: hidden; /* Disables scrollbars */
display: block; /* No floating content on sides */
}
.streamDIV {
width:100%;
}
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="//rawgithub.com/davatron5000/FitVids.js/master/jquery.fitvids.js"></script>
<meta name="description" content="REZISE TO FIT" />
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script>$(document).ready(function(){ $("#stream").fitVids(); });</script>
<div class="streamDIV" id="stream">
<iframe src="//player.vimeo.com/video/28523422" width="400" height="300" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment