I am trying to align the video to the center of the image.
.vbackground {
background-image: url('http://s1.postimg.org/hdo0xh2of/image.png');
background-repeat: no-repeat;
width: 600px;
height: 600px;
position: relative;
}
#match {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class='vbackground'>
<video controls id='match' width='300' height='300'>
<source src='match.mp4' type="video/mp4" />
</video>
</div>
How could I make the video at the center of the image (from all sides)? It currently gets aligned at the bottom of the image.