Sent by Adam Kuehn on 26 April 2004 22:10
Austin, Darrel wrote:
>I'm trying to get a page of small, floating boxes to form rows. The number
>per row dependant on the width of the browser.
>
>This works, except when the floating DIVs are of random heights...at which
>point, a div can get 'stuck'.
There are a couple of ways to cheat:
If you know where you want your rows to "break", you can add a clear
to the element you want first in the next row. This means nothing
"gets stuck" but also means content will not flow with the window
width.
If you know the height of the tallest floating div, you can declare
them all to be that height. Then when a div clears one, it clears
them all. But that also means that you are limited by that
theoretical tallest div, assuming you even know how tall that is.
This solution sometimes works well with something like a collection
of thumbnail pictures, though.
There's really no way to achieve exactly what you are asking in a
general way, though, as nice as that would be to do.
Sorry,
--
-Adam Kuehn
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/