body { background-color: #000; margin: 0; padding: 0; text-align:center; } div { font: verdana 12px #000; position:relative; } #container { margin:0 auto; padding:0 5px 0 5px; position:relative; width:700px; background-color:#fff; text-align:LEFT; clear: BOTH; } #naglowek { background: #fff url(logo.jpg) no-repeat; width:700px; height:150px; margin-bottom:10px; } #lewo { width:150px; float:LEFT; } #prawo { width:150px; float:RIGHT; } #srodek { width:400px; float:LEFT; } #stopka { clear:BOTH; text-align:center; }
<body> <div id="container"> <div id="srodek"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Fusce nec velit id lacus pharetra interdum. In massa tellus, ultrices ac, luctus sit amet, nonummy sit amet, velit. In posuere. Aenean molestie purus vel massa. Vestibulum risus tellus, tempus ac, consequat et, mattis in, lectus.</div> </div> </body>
problemw tym, ze pod IE przesuwa prawy kontener w dol tak jakby sie nie miescil w glownym kontenerze. Dzieje sie gdy w pogrubionej linijce zwieksze padding na wartosc wieksza niz 0. W FF i w Operze jest wszystko w porzadku.