Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/03/2003, 07:17
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Hola de nuevo.

Me parece que no te entendí bien la primera vez. Te refieres a centrar horizontal y vertical. Como veo que lo tienes todo dentro de un <div> podrías mirarte este código a ver si te sirve de ayuda:
Código PHP:
<html>
<
head>
<
script language="JavaScript">
function 
centrar() {
    
parseInt(document.getElementById("capa").style.width)
    
parseInt(document.getElementById("capa").style.height)
    
posX = (document.body.clientWidth W) / 2;
    
posY = (document.body.clientHeight H) / 2;
    
capa.style.left=posX;
    
capa.style.top=posY;
}
</script>
</head>

<body onLoad="centrar()">
<div id="capa" style="position:absolute; width:351px; height:206px; border:1px solid red">
</div>

</body>
</html> 
Cuentame que tal te ha ido. Saludos,