I have some relatively positioned inline-block
elements side-by-side within a parent, and I've applied a margin:0
to all children of the parent, but they still have some space in between them. What's happening here?
#parent {
height: 100px;
}
#parent * {
margin: 0;
}
#parent div {
display: inline-block;
position: relative;
border: 1px solid red;
width: 50px;
height: 100%;
}
<div id="parent">
<div></div>
<div></div>
<div></div>
</div>