I'm trying to get the image to show up over the video, but it's not even appearing under the video. There's some blank space in the upper left-hand corner, but the image isn't appearing there either. The image only shows up when I take the HTML code of the video out.
<html>
<style type="text/css">
#sampleVideo {
position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
}
#sampleImage {
z-index: 40;
}
</style>
<body>
<video id="sampleVideo" src="sample.mp4" autoplay/>
<script type="text/javascript">
video = document.getElementById("sampleVideo");
</script>
<img id="sampleImage" src="enter site.png">
</body>
</html>