Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Make Div Align to Top

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #201428

    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

    Alt

    to :

    Thank’s before !

    #201430
    Paulie_D
    Member

    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/

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.