Skip to content

Instantly share code, notes, and snippets.

@bkaminski
Created September 2, 2017 15:09
Show Gist options
  • Save bkaminski/ac9e697a66b7eba06218f8e187d4a261 to your computer and use it in GitHub Desktop.
Save bkaminski/ac9e697a66b7eba06218f8e187d4a261 to your computer and use it in GitHub Desktop.
CSS3HTML5Video
<div class="header-unit">
<div id="video-container">
<video autoplay loop class="fillWidth">
<source src="http://yourwebsite.com/your-video-file.mp4" type="video/mp4"/>
<source src="http://yourwebsite.com/your-video-file.ogg" type="video/ogg"/>
<source src="http://yourwebsite.com/your-video-file.webm" type="video/webm"/>
Your browser does not support the video tag. I suggest you upgrade your browser.
</video>
</div><!-- end video-container -->
</div><!-- end .header-unit -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment