Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <div class="full-window-height video-bg">
  <video
         src="http://mazwai.com/system/posts/videos/000/000/225/original/andrew-arthur-breese_boneyard-raw-broll.mp4?1476538479"
         preload="auto"
         autoplay="true"
         muted="true"
         loop="true"
         controls="false"
         poster="https://images.unsplash.com/photo-1473861646675-0252edc45daa?dpr=1&auto=format&fit=crop&w=1500&h=1000&q=80&cs=tinysrgb&crop="></video>
  <h1>Example of a Full-Fill Video Background</h1>
</div>
              
            
!

CSS

              
                body {
  /* these don't matter: */
  margin: 0;
  padding: 0;
}
.full-window-height {
  height: 100vh; /* ONLY if you want the video to fill the entire browser window. Support: http://caniuse.com/#search=vh */
}
.video-bg {
  position: relative; /* contain the abs-pos <video> */
  width: 100%;
  overflow: hidden; /* prevent scrollbars */
  /* these below don't matter: */
  /*padding: 10% 0; */
  text-align: center;
  font: bold 40px/1.2 sans-serif;
}
.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* keep centered in parent */
  z-index: -1; /* keep video behind other content */
  min-width: 100%; /* always cover horizontal */
  min-height: 100%; /* always cover vertical */
}
h1 {
  /* these don't matter: */
  color: white;
  text-shadow: 2px 2px 10px black;
}

              
            
!

JS

              
                
              
            
!
999px

Console