I wanna position two absolute div's side by side in the mobile device, but there is a gap between the two divs.
I want to position them side by side if the size of the mobile device changes(flexible)
Thanks In Advance!
#header {
position: relative;
}
#menu {
background-color: green;
position: absolute;
right: auto;
left: 0;
bottom: 0;
top: 0;
}
#tab {
background-color:pink;
position: absolute;
overflow: auto;
right: 0;
bottom: 0;
top: 0;
z-index: 10;
padding: 1.2rem;
width: 70%;
display: block;
}
<div class="header">
<div id="menu">menu</div>
<div id="search"></div>
<div id="tab">tab</div>
</div>