i was wondering if there is anyway to float many divs with different heights next to each others without pushdown effect,
eg:!
||||||| ||2||| ||||||||
||||||| |||||||| ||||3||
||1|| ||||||||
||||||| ?||||||||
||||||| ||4||||
|||||||||
the problem is the white space under div 2 which is because div3 is taller than div2 so it pushed down div4 leaving ugly whitespace
code:
<div class=container>
<div class=box>1</div>
<div class=box>2</div>
<div class=box>3</div>
<div class=box>4</div>
</div>
im trying to make div .container float any number of divs inside dynamically and all borders touch each other w/o this pushdown effect,
is there any way to do it ? i tryed jQuery Masonry plugin but could figure it out also :(..
ty very much for help