This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > September 2005 > Re: Strange cross linking of div heights.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Strange cross linking of div heights.
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)
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews