![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
24/02/2010, 09:37
|
| | Fecha de Ingreso: febrero-2010
Mensajes: 49
Antigüedad: 15 años Puntos: 0 | |
Respuesta: Centrar fondo http://www.davidcalf.site11.com/home.html
body {
background-color: #000;
background-image: url(images/fondo.jpg);
background-repeat: no-repeat;
background-position: center center;
background-attachment: scroll;
position:relative;
min-width:1024px;
min-height:100%;
}
#container {
background-image: url(images/fondohome.jpg);
position:relative;
left: 50%;
top: 50%;
width:1000px;
height:600px;
margin-left: -500px;
margin-top: -300px;
}
Haber. Hasta donde yo me se. Hay tengo puesto que el background este justo en el centro. Y el container tengo puesta la medida que quiero y lo he centrado. |