Within the td
I have four div
. But I don't know how there is a little bit of margin like space created. And I can't seem to remove it.
If this is the behaviour of inline-block
, then how to override this behaviour?
.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>