문제

I'm trying to fill my screen with boxes so I've floated them left.

My problem is, that the boxes have different heights. So the when a new line begin, the top Position of the first Div is equal to the bottom position of the tallest.

Have anyone an idea, how i could fix that problem

It's difficult to explain, so I've made a screenshot.

http://s7.directupload.net/images/140506/rdzp72sh.jpg

greez!

도움이 되었습니까?

해결책 2

You can try a jquery solution. Only from Css you can not solve this. A not paid version for "arrange" divs in optimal vertical position with different height in the layout is http://masonry.desandro.com/.

다른 팁

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top