| Jim Moe 2005-09-17, 4:27 am |
| Alan Chandler wrote:
>
> I have managed to isolate the problem in some static html, but I don't
> understand why it occurs.
>
The "clearfix" class did not really address the problem. Remove all of
the "clearfix" classes. They are useless for your example.
The difficulty you are having is that you float:left nearly everything
in a "family" div, leaving the div with essentially no content. Thus the
div height collapses to a minimum value determined by padding and margin.
The same thing occurs for non-floated divs that do not have any content.
Add to each div that does not have any content besides other
floated divs, or non-floated divs (e.g., "children") with no content.
--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
|