Ver Mensaje Individual
  #3 (permalink)  
Antiguo 04/09/2003, 06:59
Avatar de kahlito
kahlito
Colaborador
 
Fecha de Ingreso: marzo-2003
Ubicación: En el Estrecho y el mar
Mensajes: 2.936
Antigüedad: 21 años, 11 meses
Puntos: 65
Buenas sopapo

Hace poco que yo hice esta misma pregunta y aunque no me dieron la solucion con Dreamweaver me pasaron este código, quizas te pueda servir:

<html>
<head>
<script>
function centrarCapa(obj) {
an=parseInt(document.getElementById(obj).style.wid th);
al=parseInt(document.getElementById(obj).style.hei ght);
x=(document.body.clientWidth-an)/2;
y=(document.body.clientHeight-al)/2;
document.getElementById(obj).style.left=x;
document.getElementById(obj).style.top=y;
}
</script>
</head>

<body onLoad="centrarCapa('Layer1')" onResize="centrarCapa('Layer1')">
<div id="Layer1" style="border:1px solid red; position:absolute; width:200px; height:115px; z-index:1"></div>
</body>
</html>

De todas formas aqui mismo tambien te dejo el enlace por si quieres echarle un vistazo:

http://www.forosdelweb.com/showthrea...=Centrar+capas

Un saludo