I am struggling to vertically align a div within another div in order to create a play button for a video. I have attempted various traditional methods of vertical alignment and even tried using a jQuery script, but so far have been unsuccessful.
EDIT - The content / The circular play button must remain fully responsive, so I cannot remove the 20% width and the 20% padding-bottom it currently has.
You can view a live version of the website here, where the 'videoplay' div is the one in question.
HTML
<div class="rectanglewrap">
<div class="rectangleimg" id="gknengine">
<div class="videoplay vcenter"><span class="glyphicon glyphicon-play" id="playbutton"></span></div>
</div>
</div>
CSS
.rectangleimg{
position:relative;
height:0;
width:100%;
padding-bottom:50%;
}
.div-centerer {
position: absolute;
top: 0;
width:100%;
height:100%;
}
.vcenter {
display: inline-block;
vertical-align: middle;
}
.videoplay {
border-radius: 100%;
background-color: #12A537;
height:0;
width:20%;
padding-bottom:20%;
margin:0 auto;
}
I would greatly appreciate any assistance with this issue!
Thank you.