Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/01/2011, 16:57
PrendekZ
 
Fecha de Ingreso: noviembre-2009
Ubicación: Colombía
Mensajes: 311
Antigüedad: 15 años, 2 meses
Puntos: 17
Respuesta: Duda con MENU DIV siempre centrado verticalmente

HTML:

Cita:
<div id"menu">
Aqui tu menu
</div>
CSS:

Cita:
#menu{
width:400px;
height:200px;
position:absolute;
top:50%;
left:50%;
margin-top:-100px;
margin-left:-200px;
}
Solo tienes que modificar: Width, Height, margin-top y margin-left.

Width: Ancho del menú
Height: Alto del menú
margin-top: La mitad de height pero en valores NEGATIVOS
margin-left: La mitad de width pero en valores NEGATIVOS

Cualquier duda postea!