How to get my Images to Fill In All Blank Space?

hello!

I have been trying to work out how to acheive this:

In the attachment I’ve put the basic htm ive been playing with, trying to not have them leave those annoying gaps… it feels like it should have a simple solution which is even MORE frustrating…

(The images are going to dynamically be placed in with asp so I can’t arrange them manually and have to expect any combination of heights)

Any ideas?

~ Lacuna :love: