Ver Mensaje Individual
  #6 (permalink)  
Antiguo 04/06/2011, 10:19
rapuig
 
Fecha de Ingreso: junio-2011
Mensajes: 478
Antigüedad: 12 años, 10 meses
Puntos: 13
Respuesta: ¿como mantener el fondo fijo?

Hola, a mi me pasa que pongo un fondo al body y le doy posición fixed pero como tengo el wrapped o contenedor general centrado al darle este atributo al body se me corre todo hacia la izquierda.

body {
margin: 0;
padding: 0;

background-image: url("miImagen.jpg");
background-repeat: no-repeat;
position: fixed;
}

#wrapper {
width: 980px;
padding: 0;
height: 930px;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
}


Gracias!