cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation


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.

              <iframe class="video" src="https://www.youtube.com/embed/iMhq63PX8cA?controls=0&showinfo=0&rel=0&autoplay=1&loop=1&mute=1" frameborder="0" allowfullscreen></iframe>

<div class="content">
  <h1>Video Background Demo Using YouTube</h1>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Incidunt, nostrum. Fugit eos quia commodi amet vitae, ratione, quis voluptas nostrum, praesentium obcaecati ea possimus odio excepturi eveniet nisi, illo dignissimos.</p>
              * {
  box-sizing: border-box;
  font-family: arial;
  text-align: center;

.video {
  background: #000;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;

.content {
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 1rem;
  width: 100%;

@media (min-aspect-ratio: 16/9) {
  .video {
    height: 300%;
    top: -100%;

@media (max-aspect-ratio: 16/9) {
  .video {
    width: 300%;
    left: -100%;
Loading ..................