Is there a way to position two absolute div's next to each other on mobile devices without any gap between them?
I am looking for a flexible solution that will allow the divs to stay side by side even as the size of the mobile device changes.
Thank you in advance for your help!
#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>