When you use float on an element like a DIV, the browser doesn't consider it's height when calculating the parent elements height. The solution is to add this right after the floated element and before the parent's closing tag:
|
Code:
|
<div style="clear: both;"> </div> |
You can have a CSS class for this like this:
|
Code:
|
.clear {
clear: both;
} |
Let me know how this goes...