JSFiddle - React, Tailwind, and code Playground

by Wentz Wu

HTML

<div class="container">
    <div class="videoWrapper">
        <iframe width="854" height="510" src="https://www.youtube.com/embed/uKmhH0sI0Ko" frameborder="0" allowfullscreen></iframe>
    </div>
</div>

CSS

.container {http://jsfiddle.net/#save
    position: relative;
    width:50%;
    margin-left: auto;
    margin-right: auto;    
}
.videoWrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    padding-top: 25px;
    height: 0;
}
.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

}