To my knowledge, there's no way to fix this problem with pure CSS (that works in all common browsers):
display: inline-block
position: relative
position: absolute
Instead, use jQuery Masonry.
2.1m questions
2.1m answers
60 comments
57.0k users