I cannot figure out how to center the logo over a video background. Any suggestions on what I might be doing wrong? I've tried changing the "position" to relative and absolute, but without any success.
#hero video {
width:100%;
height:100%;
position: absolute;
top:0;
left:0;
z-index: 5;
object-fit:cover;
display: block;
}
header {
position: absolute;
background: none;
object-position: center;
z-index: 20;
opacity: 0.7;
align-items: center;
display: block;
height: 200px;
}
<div class="texture"></div>
<div id="hero">
<video preload="auto" autoplay muted loop id="myVideo">
<source src="pls.mp4" type="video/mp4">
</video>
</div>
<header class="logo">
<img src="logo.jpg" height="300px" alt="logo"/>
</header>