[CSS] IE7 ignoruje margin:auto

Cześć.

Mam problem z niesforną IE7, źle interpretuje marginesy głównego kontenera div :frowning: .

* { margin: 0 auto; padding: 0 auto;}

 

html, body {

margin: 0 auto;

padding: 0 auto;

color: #000000;

}


html {

font-family: Monospace, Sans-sefir, Verdana;

word-wrap: break-word;

}


body {

width: 100%;

height: 100%;

background-color: #dfdfdf;

background-repeat: repeat-y;

font-size: 80.5%;

}


#content {

width: 980px;

min-height: 700px;

position: relative;

border: solid 1px;

}


#body_index {

width: 980;

min-height: 400px;

margin-top: 100px;;

}

Cały #content ucieka w lewy górny róg w IE7, pozostałe przeglądarki wyświetlają układ poprawnie.

http://funkcje.net/view/5/4356/index.html

musisz dać wysokość odstępu przed tym marginesem widocznie.

A tak apropo to IE7 już nie jest używany,powinno się instalować co najmniej IE8.

To jednak nie problem z marginesami :frowning: . Johny , te porady co podałeś są do IE6, bo w 7 do wyśrodkowania kontenerów nie trzeba dawać ciału strony text-align:center.