08/05/2008, 16:36
|
| | Fecha de Ingreso: junio-2007
Mensajes: 19
Antigüedad: 17 años, 7 meses Puntos: 0 | |
Re: Como centrar una pagina web? Cita:
Iniciado por tunait Prueba a hacer lo siguiente a ver si te da resultado
Coloca un div que abarque todo y con estas propiedades:
<div style="width: 780px; position: relative; margin-left: auto; margin-right: auto;">
Además agrega a tu documento un dtd de xhtml para que en explorer se comporte igual
Te quedaría algo así
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> título</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div style="width: 780px; position: relative; margin-left: auto; margin-right: auto;">
...aquí el resto de tus contenidos actuales
</div>
</body>
</html>
mira a ver si con eso lo solucionas |