Ver Mensaje Individual
  #17 (permalink)  
Antiguo 21/10/2005, 11:17
Avatar de tunait
tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 22 años, 8 meses
Puntos: 381
Bueno, no es exactamente igual pero debería funcionar igual.

Prueba esto en un documento nuevo (para que veas que debiera funcionar por sí sólo)

Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
#pepe{
width: 100px;
height: 100px;
background-color: #ff0000;
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<div id="pepe">blabla</div>
</body>
</html>
Eso deberías de verlo centrado. Si aplicando lo mismo a tu documento no te lo centra debe de haber algo que está interfiriendo.

¿se puede ver en marcha? ¿lo tienes en algún server?