I made navbar where are menu and logo next to each other so what's problem ? well when I size my browser they go into each other. In my example logo have higher z-index so menu is unseen when I size in, I need solution to this problem
#navbar ul li .a1 {
position: fixed;
left:0;
padding-left:18px;
cursor: pointer;
color:rgb(252,227,0);
font-size:1.2rem;
text-decoration: none;
transition: .5s;
}
#navbar #logo img {
width:90px;
height:48px;
background: black;
position: absolute;
z-index: 1000;
left:6%;
padding-left:12px;
}
<div id="navbar">
<div id="logo">
<img src="https://i1.wp.com/obedparla.com/wp-content/uploads/2018/11/twenty-one-pilots-trench-logo.jpg?fit=1920%2C1080&ssl=1">
</div>
<ul>
<li>
<a href="#" class="a1">
<i class="fa fa-bars"></i>Menu
</a>
</li>
</ul>
</div>