Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/07/2011, 01:35
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 9 meses
Puntos: 1567
Respuesta: Problema centrando el contenido de un fieldset

Bueno, si lo que queres es centrar la tabla, entonces usas esto

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. </head>
  7. <div>
  8. <form action="#">
  9. <legend>Usuario:</legend>
  10. <table width="50%" border="1" align="center">
  11.     <tr>
  12.         <td>
  13. nombre: <input type="text" size="30" name="a" /><br />
  14. </td>
  15. </tr>
  16. </form>
  17. <br />
  18. <form action="#">
  19. <legend>Usuario:</legend>
  20. <table width="50%" border="1" align="center">
  21.     <tr>
  22.         <td align="center">
  23. nombre: <input type="text" size="30" name="b" /><br />
  24. </td>
  25. </tr>
  26. </form>
  27. </div>
  28. </body>
  29. </html>

ahi tenés las dos variantes, la tabla centrada ó la tabla + la celda más abajo.
La primera parte del html contiene el llamado Doctype

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">

No abundo en detalles, pero si usas ese (Transitional), el atributo align es completamente válido, para las celdas y la tabla.

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.