I am currently developing a website with a background video and I want to overlay a company logo on top of it while keeping it centered. My coding language of choice for this project is using HTML and CSS. Here's the HTML code snippet I have for this particular section:
#reel {
position: absolute;
visibility: hidden;
right: 0;
top: 8px;
min-width: 100%;
min-height: 100%;
}
#overlay {
top: 50%;
}
<!-- BACKGROUND REEL-->
<div>
<video playsinline autoplay muted loop id="reel">
<source src="Media/Reel.mp4" type="video/mp4">
</video>
<img class="overlay" width="40%" src="Media/Transparent.png">
</div>
Despite my efforts, I'm facing difficulties in centering the logo. It doesn't stay centered when the page is resized. Can anyone shed light on what might be causing this issue?