In the td
element, I have four nested div
elements. However, there seems to be a small margin or space created between them that I cannot figure out how to remove.
If this spacing is due to the behavior of the inline-block
, then how can I override it?
.box{
width: 25%;
height: 50px;
background-color: red;
display: inline-block;
}
<table style='width: 100%;'>
<tr>
<td>
<div class='box'></div>
<div class='box'></div>
<div class='box'></div>
<div class='box'></div>
</td>
</tr>
</table>