I recently created multiple div elements with a uniform width of 5px.
Here is the CSS code I used:
div {
background-color: black;
width: 5px;
height: 100px;
display: inline-block;
}
To my surprise, despite setting the same width for all divs, some appear to be slightly larger by 1px. Can anyone shed light on why this might be happening?
You can view the outcome here.