przeszukując wujka google w poszukiwaniu rozwiązania mojego problemu dot. wyrównania div-ów znalazłem takie coś:
Kod
#menulewe { width: 153px; padding-bottom: 2000px; margin-bottom: -2000px; }
#tresc { width: 480px; padding-bottom: 2000px; margin-bottom: -2000px; }
#menuprawe { width: 148px; padding-bottom: 2000px; margin-bottom: -2000px; }
#tresc { width: 480px; padding-bottom: 2000px; margin-bottom: -2000px; }
#menuprawe { width: 148px; padding-bottom: 2000px; margin-bottom: -2000px; }
lecz u mnie po zmianie danych nie działa.
Kod mojej strony wygląda następująco:
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta name="author" content="UG Kochanowice"> <link rel="Stylesheet" type="text/css" href="style.css"> </head> <body> <div id="top"> <div id="logo"> logo </div> <div id="kontenersrodek"> <div id="menulewe"> menu </div> <div id="tresc"> tresc klfdskfksdjk kkldskfkld skfjldjskfj ksdjfio sdklfjkldsjfl skldfjksjl df sdjkfjdksfjfkljkJKFJ KdjklJk dfksdjklfsdkljfkld fsdjkf;sdf dsjf' </div> <div id="menuprawe"> menu 1 </div> </div> <div id="stopka"> stopka </div> </div> </body> </html>
Kod cssa:
Kod
html, body {
background-color: #fff;
color: #000;
}
#top {
width: 800px;
margin: 0 auto;
padding-top: 20px;
}
#logo {
width: 798px;
background-color: #888;
border: solid 1px #000000;
height: 200px;
}
#kontenersrodek {
text-align: left;
}
#menulewe{
width: 153px;
float: left;
overflow: hidden;
background-color: #ccc;
border-left: solid 1px #000000;
border-right: solid 1px #000000;
padding-left: 5px;
}
#menuprawe {
width: 148px;
float: right;
overflow: hidden;
background-color: #ccc;
border-left: solid 1px #000000;
border-right: solid 1px #000000;
}
#tresc {
width: 480px;
padding-left: 5px;
padding-right: 5px;
float: left;
overflow: hidden;
background-color: #fff;
min-height: 50px;
}
#stopka {
clear: both;
width: 798px;
background-color: #888;
border: solid 1px #000000;
}
#menulewe { width: 153px; padding-bottom: 2000px; margin-bottom: -2000px; }
#tresc { width: 480px; padding-bottom: 2000px; margin-bottom: -2000px; }
#menuprawe { width: 148px; padding-bottom: 2000px; margin-bottom: -2000px; }
background-color: #fff;
color: #000;
}
#top {
width: 800px;
margin: 0 auto;
padding-top: 20px;
}
#logo {
width: 798px;
background-color: #888;
border: solid 1px #000000;
height: 200px;
}
#kontenersrodek {
text-align: left;
}
#menulewe{
width: 153px;
float: left;
overflow: hidden;
background-color: #ccc;
border-left: solid 1px #000000;
border-right: solid 1px #000000;
padding-left: 5px;
}
#menuprawe {
width: 148px;
float: right;
overflow: hidden;
background-color: #ccc;
border-left: solid 1px #000000;
border-right: solid 1px #000000;
}
#tresc {
width: 480px;
padding-left: 5px;
padding-right: 5px;
float: left;
overflow: hidden;
background-color: #fff;
min-height: 50px;
}
#stopka {
clear: both;
width: 798px;
background-color: #888;
border: solid 1px #000000;
}
#menulewe { width: 153px; padding-bottom: 2000px; margin-bottom: -2000px; }
#tresc { width: 480px; padding-bottom: 2000px; margin-bottom: -2000px; }
#menuprawe { width: 148px; padding-bottom: 2000px; margin-bottom: -2000px; }
Poniżej prezentuję screen tej strony:
