html
<div class="cartDialog" id="cartDialog">
<div class="formContainer"></div>
<div class="itemsContainer"></div>
</div>
css
*{
margin: 0;
padding: 0;
font-family: 'Heebo', sans-serif;
}
div.cartDialog{
position: absolute;
top: 0;
width: 100vw;
height: 140px;
background-color: #5e0d0d;
}
div.cartDialog .formContainer{
display: inline-block;
height: 140px;
width: 200px;
background-color: black;
}
div.cartDialog .itemsContainer{
display: inline-block;
height: 140px;
width: calc(100vw - 205px);
background-color: green;
}
It's apper like there is some space between formContainer and ItemsContainer. can you tell me why is that and how can I remove it. you can see in the ItemContainer css that the wid th is calc(100vw - 205px) even though formContainer width is 200. the reason for that is it looks like the space is a part of the width of formContainer and when I set the width calc(100vw - 200px) itemsContainer go to the next line.