
Ale nie wiem czy wogóle jest możliwe ustawienie takiego układu bo strona ma być wyśrodkowana...
Bardzo proszę o pomoc....
<html> <style> body{ padding: 0px; margin: 0px; } div#tab1{ background-color: red; width: 700px; height: 200px; } div#tab2{ background-color: blue; width: 700px; height: 400px; } div#tab3{ background-color: yellow; position: absolute; left: 400px; top: 0px; width: 300px; height: 400px; } </style> <script> myWidth = 700; function $S(id){ return document.getElementById(id).style; } function setupDivs(){ var leftMargin = parseInt((screen.width - myWidth)/2); $S('tab1').marginLeft = leftMargin; $S('tab2').marginLeft = leftMargin; $S('tab3').left = 400+leftMargin; } </script> <body align="center" onload="setupDivs()"> <div id="tab1"> Tabelka 1 </div> <div id="tab2"> Tabelka 2 </div> <div id="tab3"> Tabelka 3 </div> </body> </html>