HTML table with misaligned columns

Asked

Viewed 156 times

0

I have this table:inserir a descrição da imagem aqui

As it is possible to repair, the columns are not aligned with the lines, and I do not know pq and do not know how to tidy, since q smp did this way and never had this problem.

Follow the table code:

<table>
<tr>
    <th>Atividade<th>
    <th>Usuario</th>
    <th>Data/Horario</th>
</tr>

    <?php
$a = 0; $b = 0;
while($a < 10){
echo '<tr>';
echo '<td>'.$tabela[$a][$b].'</td>';
echo '<td>'.$tabela[$a][$b+1].'</td>';
echo '<td>'.$tabela[$a][$b+2].'</td>';
echo '</tr>';
$a++;
}
?>
</table>
  • 2

    Have any file or codifo css on your site ? probably should be changing table properties, good recommend using bootstrap

1 answer

4


Has a lack of closure of the first th that is distorting the columns:

<th>Atividade<th>
              ↑

Change to:

<th>Atividade</th>
              ↑
  • I let that pass kkk, thanks man

  • 1

    This happens in the best families. rs Abs!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.