How can I distribute column spacing equally from a table using CSS?
Ex:
<table>
<tr>
<td>Nome</td>
<td>Email</td>
<td>Telefone</td>
<tr>
</table>
How can I distribute column spacing equally from a table using CSS?
Ex:
<table>
<tr>
<td>Nome</td>
<td>Email</td>
<td>Telefone</td>
<tr>
</table>
You can use the table-layout: fixed
property
table {
width: 100%;
table-layout: fixed;
}
table td {
border: 1px solid #000;
}
<table>
<tr>
<td>Nome</td>
<td>Email</td>
<td>Telefone</td>
<tr>
</table>