Chcę przejść z php-fusion na joomle i zachować mój stary szablon, bo mi się podoba:) W php-fusion wszystko jest na tabelkach ja chcę zrobić na divach. Póki co udało mi się zrobić header, footer i menu idealnie, ale mam problem z glowna trescia. strona cala jest na zasadzie ramki jak na załączonym rysunku 1. Taki efekt uzyskałem dzięki wpisaniu na stałe wartości height. Jak usunę wartość height, to jest tak jak na rysunku nr 2. Chciałbym żeby się to zachowywało tak, że jak w content pojawi się więcej rzeczy, to automatycznie sie boczne ramki przeciągną.Przypuszcza że dla kogoś kto robi strony, to jest kwestia minuty

<body> <div id="container"> <!-- Header --> <div id="header"> <div id="header-center"> </div> </div> <!-- End of header --> <!-- Menu --> <div id="menu"> <div id="menu-center"> <ul> </ul> </div> </div> <!-- End of menu --> <!-- Main content --> <div id="main"> </div> <!-- End of main content --> <!-- Footer --> <div id="footer"> </div> <!-- End of footer --> </div> </body>
CSS:
body,html { margin: 0; padding: 0; height: 100%; } #container { width: 100%; height: 100%; margin: 0 auto; } #header { width: 100%; height: 100px; } #header-left { background: url(1.png) no-repeat left; float: left; width: 89px; height: 207px; } #header-center{ height: 207px; margin-left: 5%; background: url(3.png) repeat-x; } #header-right { float: right; background: url(2.png) right no-repeat; width: 89px; height: 207px; } #logo{ padding: 50px 0 0 20px; width: 30%; float: left; } #top-right{ padding: 50px 50px 0 0; float: right; } #menu{ clear: both; width: 100%; background-color: black; height: 68px; padding: 0; margin: 0; } #menu-left{ background: url(a.png) left no-repeat; height: 68px; float: left; width: 77px; } #menu-right{ float: right; background: url(b.png) right no-repeat; width: 77px; height: 68px; } #menu-center{ height: 68px; margin-left: 77px; background: url(c.png) repeat-x; } #main{ clear: both; width: 100%; background-color: #DADADA; /* for testing only */ height: 300px; padding: 0; margin: 0; } #body-left{ background: url(body-left.png) left repeat-y; float: left; width: 50px; } #body-right{ background: url(body-right.png) left repeat-y; float: right; /* aby wyrównać do prawej strony bo obrazek za duży */ width: 45px; } #sidebar-left{ color:#000000; width: 50px; } #sidebar-right{ color:#000000; width: 50px; } #content{ height: 800px; margin-left: 50px; } #footer{ clear: both; height: 192px; } #footer-left{ background: url(footer-left.png) left no-repeat; height: 192px; float: left; width: 140px; } #footer-right{ background: url(footer-right.png) left no-repeat; height: 192px; float: right; width: 140px; } #footer-center{ height: 192px; margin-left: 140px; background: url(footer.png) repeat-x; }
Z góry dzięki! Jeśli istnieje prostszy sposób, to proszę o podpowiedzi:) Chciałbym aby strona na joomli wyglądała jak oryginał: http://chris.vot.pl

