Here is the working code: http://jsfiddle.net/kp81m9v6/3/
You put your video
and your img
in a wrapper div
.
Then you have to just add the positions and specify the z-indexes inside the wrapper and you are done
HTML:
<div id="wrapper">
<img src="https://brandmark.io/logo-rank/random/pepsi.png" width="50" height="50">
<video width="320" height="240" controls src="video/flashtrailer.mp4">
Your browser does not support the video tag.
</video>
</div>
CSS:
#wrapper{
position: relative
}
#wrapper video{
position: relative;
z-index: 100;
}
#wrapper img{
position: absolute;
display: block;
z-index: 150;
left: 10px;
top: 10px;
}
#wrapper{
position: relative
}
#wrapper video{
position: relative;
z-index: 100;
}
#wrapper img{
position: absolute;
display: block;
z-index: 150;
left: 10px;
top: 10px;
}
<div id="wrapper">
<img src="https://brandmark.io/logo-rank/random/pepsi.png" width="50" height="50">
<video width="320" height="240" controls src="video/flashtrailer.mp4">
Your browser does not support the video tag.
</video>
</div>