JSFiddle - React, Tailwind, and code Playground

by Ryan Perez

HTML

<div class="videowrapper">
  <iframe src="https://player.vimeo.com/video/76979871?background=1" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>

<h1>
Your website title
</h1>

CSS

.videowrapper {
    float: none;
    clear: both;
    width: 100%;
    
    padding-bottom: 56.2%;
    height: 0;
    
    /* Put the video in the background */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
.videowrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/**
 *  Reset body margin so the videowrapper can
 *  be full-width and not cause scrollbars.
 */
body {
  margin: 0;
}