Prawdopodobnie brak mi podstaw i nie widzę gdzie zrobiłem błąd. Chcę wycentrować stronę w css.
Próbuję metody z warstwą zawierającą w sobie wszystkie inne, ale nie działą.
Strona wygląda tak:
TOP
L P
L P
a więc top na całą szerokość i dwa wiersze po dwie pozycje.
index:
<body> <div id="ALL"> <div id="TOP"> <img src="images/top1.jpg" width="971" height="545" border="0" alt="[Rozmiar: 132466 bajtów]"> </div> <div id="Formularz"> Tu będzie Forumularz </div> <div id="Panele"> <img src="images/right_panel.jpg" width="443" height="365" border="0" alt="[Rozmiar: 75461 bajtów]"> </div> <div id="Klauzula"> tu będzie Klauzula </div> <div id="Panel"> <img src="images/low1.jpg" width="582" height="218" border="0" alt="[Rozmiar: 47286 bajtów]"> </div> </div> </body>
CSS
html, body { font-family: Arial, Helvetica, sans-serif; font-size: pt; color: #ffffff; background-color: #494a4e; height:100%; } p { font-family: Arial, Helvetica, sans-serif; font-size: 11 pt; text-align: left; line-height: 1,5 } #ALL { margin: 0 auto; width; 971px; float: left; text-align: left; background-color: #a40104; } #TOP { width: 971px; text-align: left; } #Formularz { width: 528px; float: left; padding-right: 20; overflow: hidden; } #Panele { width: 443px; float: left; overflow: hidden; background-color: ; } #Klauzula { clear: both; width: 389px; padding-right: 20; float: left; overflow: hidden; background-color: ; } #Panel { width: 582px; float: left; overflow: hidden; background-color: ; }