On smaller screen sizes, my hamburger menu is blocking part of the logo. I'm struggling to figure out how to ensure that the logo appears in front of the menu before it is clicked. Here's an example.
I attempted setting the background of label .menu to transparent, but the logo only appears after the menu is clicked. This illustrates the issue.
I would greatly appreciate any assistance with this problem.
Also, please excuse the messy code; I am aware and will clean it up later. Thank you for understanding.
.logo {
position: fixed;
width: 100%;
top: -15px;
left: 50%;
transform: translate(-50%);
}
.midnight-logo {
width: 40%;
margin: 0 auto;
display: block;
}
.label .hamburger {
/* styles here */
}
/* Additional CSS rules */
<img class="logo" src="https://i.ibb.co/xsQHR3Y/midnight-logo.png">
<label>
<input type="checkbox">
<span class="menu">
<span class="hamburger"> </span> </span>
<ul>
<li> <a href="home.html"> Home </a> </li>
<li> <a href="about.html"> About </a> </li>
<li> <a href="contact.html"> Contact </a> </li>
</ul>
</label>