On Sep 10, 2008, at 5:53 PM, David Sveningsson wrote:
>
> For reference, I found the error myself. As each sortable had a number
> of floating divs I had placed a <br style="clear:both"/> _inside_ the
> sortable div. This causes any item placed last after the br and thus
> on a new line. Moving the br out of the sortable div solves the
> problem.
Just to give you another solution to this problem, rather than
putting a br clear:both after the sortables, you can simply do this:
div float:left; width:100%
div float:left
div float:left
div float:left
div float:left
As long as the container of the float is itself floated, the outer
div will wrap around all child floated divs. By adding the width:
100%, you make the parent take up all available space, the same way
that a regular div would.
Walter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---