My website has a banner that scrolls down with you, but whenever it hits text, the text covers the banner. How can I fix this issue and make sure the banner stays on top? https://i.sstatic.net/FsDZI.jpg here is the code snippet in question:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="this is an awesome website">
<meta name="auther" content="ed">
<meta name="keywords" content="html, cool, awesome">
<meta name="viewport" content="width=device-width, initial-scale=1.0"
</head>
<body>
<style>
body { margin:0; }
.main-title {
color: white;
position: absolute;
font-size: 100px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.banner {
width: 100%;
height: 10vh;
position:fixed;
background-color: black;
}
</style>
<div class="banner">hi</div>
<span class="main-title"><center>name</center></span>
<!--
width="100%" src="img_1.png" alt="background"
-->
<img width="100%" src="img_1.png" alt="background"/>
<img width="100%" src="img_1.png" alt="background"/>
<img width="100%" src="img_1.png" alt="background"/>
<img width="100%" src="img_1.png" alt="background"/>
</body>
</html>