I am new to HTML and CSS coding and I got a challenge right now. I am currently looking for the solution on how I can center my iFrame video in the center of the page.
HTML
<section id="video">
<div class="row">
<div class="video-container">
<iframe width="853" height="480" src="https://www.youtube.com/embed/rXuWb0RXfEI" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</section>
CSS:
.video-container {
position:relative;
padding-bottom:56.25%;
padding-top:30px;
margin-top: 100px;
height:0;
overflow:hidden;
}
.video-container iframe,
.video-container object,
.video-container embed {
position: absolute;
width:80%;
height:80%;
}
.row {
text-align: center;
}
I hope someone can help me with this issue...