I do know the way a float behaves. The top of the next block needs to be higher than the bottom of the previous block when it has to go to the next line. I however, need it to float to the first block from the previous level.
Currently I am working with really large menus with lists of different sizes and I am getting a lot of whitespaces because of the floats. I need an easy, CSS/HTML based way to solve this.
If you're not sure what I'm talking about, here's a fiddle: http://jsfiddle.net/2EGbx/1/
As you can see, five
is all the way to the bottom, leaving a lot of whitespace underneath one
. I need five
to go underneath one
.
I have been googeling for some time now and I really can't find any solutions on this. I'd rather not have a javascript solution because I'm pretty sure CSS can handle it, but if it really is the only way, feel free to suggest.