Now not so much fun.
I'm not sure what causes the problem, but it goes away if you add float: left; at #a.oneline * . When you do this, you can change the display to lock so that your styles look like this:
#a.multiline * { } #a.oneline * { float:left; } #a * { border:solid 1px black; display:block;}
The only difference between this solution and your original location is that the oneline blocks will be aligned at the top, not the bottom, but you can set a fixed height for these elements.
source share