I am trying to add a big play button on top of a video.
The video itself is responsive, and I want the play button to always be centered horizontally and vertically within the video.
It will be something like
---------------------------
| |
| |
| play button in center | <----video
| |
| |
---------------------------
I have something like:
<div style='text-align:center;'>
<div id='playIcon'><img src='play.png'/></div>
<video id='video' >
<source src=/video.mp4' type="video/mp4">
</video>
</div>
</div>
My css
#video{
width:100%;
max-height:1200px;
z-index: 1;
background-color: black;
}
How do I center the play button this case?