Is there a good solution for float floating div stuck?

as shown in the figure, the width of the picture is 50% and the height is auto. The pictures are all floating.
is stuck.

clipboard.png


find a plug-in for waterfall stream.
the principle of floating is what you show in your diagram. (float:left) from the starting position (to the right of the green block) to the left against the boundary or another floating element, and then blocked by the one on the left.


Falls flow layout


set a fixed height for each block, and clear the float for the bottom piece

.
Menu