Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/06/2009, 16:58
punxan83
 
Fecha de Ingreso: junio-2009
Mensajes: 7
Antigüedad: 14 años, 9 meses
Puntos: 0
como centrar tablas???

Hola amigos,

Estoy aprendiendo ha hacer paginas web y tengo una dudad que no he podido despejar y dice relación con el centrar una tabla que tiene en su interior un formulario y una imagen, les adjunto el html y el css para que vean.

De antemano muchas gracias.

html

<html>
<head>
<link rel="stylesheet" href="estilo-general.css" type="text/css" />
<title>miformu</title>
</head>
<body>

<table border="1">
<tr>
<td>
<p><img src="images/du2.gif" width="800px" height="200px" alt="du design">
</td>
</tr>
<tr><td>
<h1><p>TAREA N&Uacute;MERO 1</P></h1>
<form name="datos personales" action="index.html" method="get">
<p>nombre<input type="text" name="nom1" id="nom1" value="" maxlength="50" style="width:200px;" /></p><br />
<p>contraseña<input type="password" name="pass" id="pass" value="" maxlength="10" style="width:90px; "tipo password" /></p><br />
<input type="submit" name="ele9" id="ele9" value="entrar" /><br />
<p class="text-chico">creada por duncan lizama gonz&aacute;lez</p>
</td></tr></table>
</body>
</html>

css

p {color: #EEE9E9; font:12px impact,}
body {background: black;}
img { display: block; margin: auto; }
table.centrada td {text-align:left; }