Html : Centrar Texto de una tabla con html

NC > Computación > HTML

Ejemplo: Centrar elementos de la tabla

<table border=1 style="width: 100%;text-align:center">
<tr>
    <td>E(1,1)</td>
    <td>E(1,2)</td>
    <td>E(1,3)</td>
  </tr>
<tr>
    <td>E(2,1)</td>
    <td>E(2,2)</td>
    <td>E(2,3)</td>
  </tr>
<tr>
    <td>E(3,1)</td>
    <td>E(3,2)</td>
    <td>E(3,3)</td>
  </tr>
<tr>
    <td>E(4,1)</td>
    <td>E(4,2)</td>
    <td>E(4,3)</td>
  </tr>
</table>


E(1,1) E(1,2) E(1,3)
E(2,1) E(2,2) E(2,3)
E(3,1) E(3,2) E(3,3)
E(4,1) E(4,2) E(4,3)

Ejemplo: Centrar elementos de la tabla

<table border=1 style="border-collapse: collapse; width: 100%;text-align:center">
<tr>
    <td>E(1,1)</td>
    <td>E(1,2)</td>
    <td>E(1,3)</td>
  </tr>
<tr>
    <td>E(2,1)</td>
    <td>E(2,2)</td>
    <td>E(2,3)</td>
  </tr>
<tr>
    <td>E(3,1)</td>
    <td>E(3,2)</td>
    <td>E(3,3)</td>
  </tr>
<tr>
    <td>E(4,1)</td>
    <td>E(4,2)</td>
    <td>E(4,3)</td>
  </tr>
</table>


E(1,1) E(1,2) E(1,3)
E(2,1) E(2,2) E(2,3)
E(3,1) E(3,2) E(3,3)
E(4,1) E(4,2) E(4,3)

0.02

No hay comentarios.:

Publicar un comentario