Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/01/2009, 16:29
Avatar de Mikmoro
Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 6 meses
Puntos: 280
Respuesta: IE7: Div con margin:auto e imagen de fondo centrada no coinciden

Quizá lo puedas intentar así, pero depende del resto de tu estructura:
Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Colegio Gastron&oacute;mico del Sureste ::</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

<title></title>
<style type="text/css">
body,html,div,p { margin:0; padding:0; }
#container{height:100%;}
#caja {background: transparent url(test.jpg) repeat-y top center;
width:320px;
margin:0 auto;
}
#contained {width:290px;
height:320px;
background:#FF2354;
margin:0 auto;
}
</style>
</head>
<body>
<div id="container">
<div id="caja">
<div id="contained"></div>
</div>
</div>
</body>
</html>
__________________
Visita mi nueva web idplus.org