I've made a table and I have a couple of divs inside one of it's cells. Now, between the divs and the cell there is a little space that really bothers me, I'm talking about the top and bottom spaces (not from the sides). I hope you can help me solve it. The code:
.square
{
background-color: Gray;
width: 150px;
padding: 20px;
display: inline-block;
margin: 0;
font-size: 20px;
}
<table>
<tr>
<td style="margin: 0 auto; background-color: Blue; font-size: 0;">
<div class="square"> Text </div>
<div class="square"> Text </div>
<div class="square"> Text </div>
</td>
</tr>
</table>
I've made a Blue background so you can see the space I'm talking about. Is there a way to have no space like that?