Ver Mensaje Individual
  #30 (permalink)  
Antiguo 01/12/2008, 09:19
Avatar de patricioasencio
patricioasencio
 
Fecha de Ingreso: diciembre-2008
Ubicación: Chile
Mensajes: 12
Antigüedad: 15 años, 4 meses
Puntos: 0
Respuesta: 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, yo lo estaba buscando hace mucho tiempo este tipo de solución y tengo las mismas caracteristicas de Caroline y a mi me resulto a la perfección, muchas gracias.