--- On Fri, 3/19/10, Claude Needham <gxx...@gmail.com> wrote:

> The issue is when an image is set to
> float, the height of the graphic
> is not taken into account for the calculation of the div
> height.
> 
> But I would like to understand why this is happening

Here's my explanation:

http://www.fiveminuteargument.com/float-container

> and have some idea of the "best practice" for handling this issue.

I'm not sure if it's considered *best* practice, but a very common technique is 
to apply 'overflow: hidden' (or another non-default overflow value) to the 
container.

- Bobby
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to