LOGO
MENU GÓRNE
MENU LEWE | TREŚĆ
STOPKA
No i mam problem z Menu lewym i treścią, nie chce ustalać stałych wysokości, ale chce żeby były takie same, czyli np. jeśli dam więcej tekstu do diva treść a w menu będzie mniej treści to i tak one się wyrównają. Nie wiem czy dokładnie wytłumaczyłem, teraz przedstawię na screenach i kodzie.
http://iv.pl/images/tlbx0n079i7n8df2lop6.png
I jak widać treści jest więcej niż podpunktach w menu więc menu jest mniejsze od treści a chciałbym żeby były równo, żeby automatycznie menu się powiększało jak się doda więcej treści
Tutaj rysunek w paincie jak to ma wyglądać
http://iv.pl/images/p5rh15fkmxwbbx0urz2.png
Kod html:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> <link rel="Stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="top"> <div id="logo"> </div> <div id="menu_gorne"> Menu górne </div> <div id="menu_lewe"> Indeks <br /> Coś <br /> Coś 2 <br /> </div> <div id="tresc"> tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc tresc </div> <div id="stopka"> Stopka </div> </div> </body> </html>
CSS:
body { background-color: #454545; } #top { width: 1002px; margin: auto; } #logo { width: 1000px; height: 180px; background-color: #000; border: 1px solid #fff; } #menu_gorne { border: 1px solid #fff; width: 1000px; height: 25px; background-color: #000; } #menu_lewe { width: 200px; float: left; background-color: #fff000; margin: 0; padding: 0px; } #tresc { width: 802px; margin: 0px; padding: 0px; background-color: #fff; float: right; } #stopka { width: 1002px; height: 35px; background-color: #000; }
Nie mam pojęcia jak to zrobić.