JSFiddle - React, Tailwind, and code Playground

by Todd Levy

HTML

<div class="media-player-wrap">
    <div class="media-player">
        <iframe width="560" height="315" src="http://www.youtube.com/embed/s5zpev9Y_-g" frameborder="0" allowfullscreen=""></iframe>
    </div>
    <div class="entry-caption">
        <p>Watch an Overview of Instabeat</p>
    </div>
</div>

CSS

* {
    padding:0;
    margin:0
}
*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
body {
    font-size:100%;
    width:90%;
    margin:1em auto;
}
.media-player-wrap {
    margin-bottom: 1.25em;
}
.media-player {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 0px;
    height: 0;
    overflow: hidden;
    border: solid 1px #e0e0df;
}
.media-player-wrap .entry-caption {
    border-left: 1px solid #e0e0df;
    border-right: 1px solid #e0e0df;
    border-bottom: 1px solid #e0e0df;
    padding: .75em 1em;
    margin-bottom: 1.5em;
    font-family:"Ubuntu", arial, sans-serif;
    font-size: .8125em;
    line-height: 1.5;
    color: #757575;
}