I've tried to make a simple block structure to visualize how works "display: inline-block;" property. And I have a question: what's that tiny space between blocks that looks like borders, which I did not set up? Why does it appear?
h1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 2.5rem;
margin-top: 0;
font-weight: 100;
}
.container {
background-color: rgba(12, 14, 24, 0.82);
}
.yellow {
background-color: rgba(255, 251, 2, 0.82);
height: 300px;
width: 10%;
display: inline-block;
box-sizing: border-box;
}
.pink {
background-color: rgba(236, 2, 157, 0.68);
height: 300px;
width: 10%;
display: inline-block;
box-sizing: border-box;
}
.cyan {
background-color: cyan;
height: 300px;
width: 10%;
display: inline-block;
box-sizing: border-box;
}
<div class="container">
<div class="yellow">
<h1>1</h1>
</div>
<div class="pink">
<h1>2</h1>
</div>
<div class="cyan">
<h1>3</h1>
</div>
</div>
I've tried to ask it in the Discord community but nobody can't give me a correct explanation...