Kurzfassung: das Float-Div muss ge-cleared werden. Beispiel:
HTML:
CSS:
Code
#a {
background-color: #660000;
}
#b {
color: white;
background-color: #006666;
width: 200px;
height: 200px;
float: left;
}
#a:after {
clear: both;
content: '.';
display: block;
height: 0;
visibility: hidden;
}
Alles anzeigen
Details:
http://www.positioniseverything.net/easyclearing.html