Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/06/2008, 08:41
Avatar de DragonX
DragonX
Colaborador
 
Fecha de Ingreso: mayo-2002
Ubicación: Funkyland
Mensajes: 8.433
Antigüedad: 22 años
Puntos: 177
Respuesta: DIV siempre al centro de la pagina

debes ponerle a tu div una ubicación fija!

Cita:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>New Document</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<style>
#centrado{
position:fixed;
width:200px;
height:200px;
border:1px solid #000;
left:50%;
top:50%;
margin-left:-100px;
margin-top:-100px;
}
</style>
</head>
<body>
<div id="centrado">Hola!!!</div>
</body>
</html>
Espero te sirve
__________________
Desarrollos dosLotos
Calendario Maya, Meditación, Osho