Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/04/2010, 04:14
biobcn
 
Fecha de Ingreso: abril-2010
Mensajes: 2
Antigüedad: 14 años
Puntos: 0
centrar capa IE

Hola!

tengo problemas con el IE. Tengo unas capas que quiero centrar horizontalmente, o sea el clasico 'margin:0 auto;' Chrome y firefox me lo hace bien, pero el IE no hay manera.

Alguien sabe como puedo arreglarlo?

Muchas gracias.

HTML:
<html>
<head>
</head>
<body>

<div id="contenedor">
<div id="caja1">
<div id="logo"></div>
<div id="box2"></div>
<div id="box3"></div>
</div>
<div id="caja2">
<div id="box4"></div>
<div id="box5"></div>
<div id="box6"></div>
<div id="box7"></div>
</div>
</div>

</body>
</html>



CSS:
#contenedor{
width:960px;
height:auto;
margin:0 auto; }
#caja1{
background-color:#999999;
float:left;
margin:0;}
#caja2{
background-color:#999999;
float:left;
margin:0;}
#logo{
width : 187px;
height : 83px;
background-color:#111111;}
#box2{
width : 187px;
height : 19px;
background-color:#333333;}
#box3{
height : 217px;
width : 187px;
background-color:#555555;}
#box4{
width : 773px;
height : 83px;
background-color:#777777;}
#box5{
height : 19px;
width : 773px;
background-color:#999999;}
#box6{
height : 198px;
width : 773px;
background-color:#bbbbbb;}
#box7{
height : 19px;
width : 773px;
background-color:#dddddd;}