Ver Mensaje Individual
  #24 (permalink)  
Antiguo 08/05/2008, 16:34
yodelsur
 
Fecha de Ingreso: junio-2007
Mensajes: 19
Antigüedad: 16 años, 10 meses
Puntos: 0
Mensaje Re: Como centrar una pagina web?

Cita:
Iniciado por tunait Ver Mensaje
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&iacute;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
HOLA COMO ESTAS..MIRA PUSE EL CODE TAL CUAL LO PUSISTE Y EN FIREFOX ME SALE CENTRADA PERO NO EN EXPLORERME SALE A LA IZQUIERZA...COSA Q NO PASA CUANDO HAGO LA VISTA PREVIA F12 EN DREAMWEAVER.....AGRADECERIA MUCHO TU AYUDA...-