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

Home Forums CSS Image grid gallery: fluid images same height but different widths

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #177423

    I’ve been trying to figure out how to create a grid / image gallery whereby every row or image in a row is the same height but has different widths? The whole grid or the box images need to be fluid and responsive. Pretty much every solution i’ve found is where an image grid is made up of images which are all equal squares which is not what i’m looking for.

    This link to an image better illustrates what i mean-

    Is this even possible to achieve? i’ve tried masonry, bootstrap and what must be a few dozen different attempts using html and css. I cannot for the life of me get the images to resize equally together. Any pointers or suggestions would be hugely appreciated.


    CSS can’t do that.

    Masonry.js should be the answer…or something like it.


    Thanks, i thought perhaps i was trying to achieve the impossible. However this site seems to have images side by side which respond and resize together using just css-

    I have tried masonry but all of the images despite being given same heights, are not the same height. It’s driving me nuts!

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