The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Make Div Align to Top
Hallo guys, I in progress to make gallery page on my website. Q : How I make no space between div ? ( div align to top even if I make the height of div is auto/ dependent on size of images)
http://codepen.io/afrianhasendra/pen/VLLWjQ
and I want to make it like this
to :
Thank’s before !
You can’t do that with CSS generally…unless you use a column structure..and even then your images would probably have to be the same width.
You need javascript…something like http://masonry.desandro.com/