Napisałem sobie banalny szablon i zacząłem kombinować i z height:100% lecz to nic mi nie dało. Chodzi o to, że divy menu i informacje mają być zawsze rozciągnięty do końca. Na <br> proszę nie zwracać uwagi ponieważ w tym tkwi problem a to pomogło mi to sobie jakoś wyobrazić jak będzie wyglądać strona.
Wygląda to tak.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <link rel="stylesheet" href="style.css" type="text/css" media="screen" charset="utf-8" /> </head> <body> <div id="top"> <table cellpadding="0" cellspacing="0" class="brd"> </div> </table> <br> <table cellpadding="0" cellspacing="0" class="brd"> </div> </table> </div> <table cellpadding="0" cellspacing="0" class="brd"> </div> </table> <br> <table cellpadding="0" cellspacing="0" class="brd"> </div> </table> </div> </div> </body> </html>
html, body { background-color: #9CA400; color: #000; margin: 0; padding: 0; } #top { width: 1000px; border:3px solid black; margin: 0 auto; margin-top: 30px; } #naglowek { background-color: white; border-bottom:1px dashed black; } #menu { width: 170px; height: 100%; float: left; overflow: hidden; background-color: white; padding-left: 6px; padding-right: 6px; } #informacje { width: 170px; float: right; overflow: hidden; background-color: white; padding-left: 6px; padding-right: 6px; } #tresc { width: 624px; height; 100%; float: left; overflow: hidden; background-color: white; border-right:1px dashed black; border-left:1px dashed black; padding-left: 10px; padding-left: 10px; } #stopka { clear: both; width: 100%; background-color: white; } .m {background: url(naglowek.jpg); width:160px; height:20px; text-align:center; font-weight:bold; color:#fff} .linki {padding:8px; letter-spacing:1px} .brd {border:1px solid #C6C6C6}