Test Foro de elhacker.net SMF 2.1

Programación => Desarrollo Web => Mensaje iniciado por: Siempre Azul en 5 Febrero 2014, 02:30 AM

Título: como centrar una tabla
Publicado por: Siempre Azul en 5 Febrero 2014, 02:30 AM
hola amigos como puedo hacer que cuando haga mi consulta me salga en el centro la tabla

aqui mi codigo:

   while ($row = mysql_fetch_row($result)){
       echo "<table border='1'><tr><th>Nombre</th><th>DNI</th><th>Operacion</th><th>Estado</th></tr><tr>";

echo "<td>".$row[0]."</td><td>".$row[1]."</td>
            <td>".$row[2]."</td><td>".$row[3]."</td>";

      echo "</tr></table>";
  }
   echo "</tr></table>";


gracias de antemano.
Título: Re: como centrar una tabla
Publicado por: EFEX en 5 Febrero 2014, 09:42 AM
No estas aplicando los tag debidamente.

http://www.mclibre.org/consultar/amaya/xhtml/xhtml_tablas.html