3
Yes, there is a way using the border-collpse
and border-spacing
in the CSS:
table td {
border: solid 1px #000;
}
table{
border-collapse: separate;
border-spacing: 10px;
margin: 0 0 0 0;
}
<table>
<tr>
<td>Coluna 1
</td>
<td>
Coluna 2
</td>
</tr>
<tr>
<td>Coluna 1
</td>
<td>
Coluna 2
</td>
</tr>
</table>
You can use margin in each one. Example, use in your css: td{margin-right:10px;}
– Tiago P.C
@Tiagop. C already tried, does not catch margin on td’s
– Lourençon O.
So with padding, as Pedro’s answer says, below.
– Tiago P.C
padding is internal spacing, in my case I want to give external spacing.
– Lourençon O.