I have been brushing up on some CSS positioning since I lack proficiency in the said concept and I can across some unexpected and unexplained gaps between two out of the three containers. I will attached the code for HTML and CSS below along with the output screenshot to make it less arcane.
body {
margin: 0;
padding: 0;
}
.red-container {
height: 100px;
width: 100px;
background-color: red;
position: absolute;
left: 200px;
display: inline-block;
}
.blue-container {
height: 100px;
width: 100px;
background-color: blue;
position: relative;
display: inline-block;
}
.yellow-container {
height: 100px;
width: 100px;
background-color: yellow;
position: relative;
display: inline-block;
}
<div class="red-container"></div>
<div class="blue-container"></div>
<div class="yellow-container"></div>