Return to Snippet

Revision: 1567
at October 23, 2006 08:04 by danideu


Initial Code
#mydiv {
position:absolute;
top: 50%;
left: 50%;
width:30em;
height:18em;
margin-top: -9em; /*set to a negative number 1/2 of your height*/
margin-left: -15em; /*set to a negative number 1/2 of your width*/
border: 1px solid #ccc;
background-color: #f3f3f3; }

Initial URL
http://www.nudonation.com/archivos/css/

Initial Description


Initial Title
DIV CENTRADO HORIZONTAL Y VERTICALMENTE

Initial Tags


Initial Language
CSS