I am displaying a series of images in "float: left" DIVs. Normally this renders just fine. If I display 20 or 30 images, they just wrap to the next "line" beneath the previous row. All have text captions in the DIV. The problem occurs when one of the captions wraps to multiple lines. This makes that DIV taller than the rest on that same row. This messes up the next row of images in that they don't resume displaying at the left edge of the screen, but rather start displaying underneath and to the right of the "tall" DIV. For example:
Code:
-------- -------- -------- -------- -------- --------
| | | | | | | | | | | |
| | | | | | | | | | | |
| | | | | | | | | | | |
-------- -------- -------- -------- -------- --------
-------- -------- -------- -------- -------- --------
| | | | | | | | | | | |
| | | | | | | | | | | |
| | | | | | | | | | | |
-------- -------- -------- | | -------- --------
--------
-------- --------
| | | |
| | | |
| | | |
-------- --------
How can I get images as shown in the last row to start at the left edge? I can't really put a <div style="clear: both"></div> after each row because I don't know how many DIVs will be on each row.