how to make a video to be on the center html/css code example
Example 1: center a video horizontally
.videoDiv
{
width: 70%;
margin: 0 auto;
display: block;
}
.videoDiv{
margin:0 auto;
display: block;
}
Example 2: center a video horizontally
<div class="videoDiv">
<video width="100%" controls>
<source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
<source src="https://www.w3schools.com/html/mov_bbb.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
</div>