Irregular image grid help

What the best way of making an irregular image grid. Where pictures have different sizes and start at different places?
No description
5 Replies
capt_uhu
capt_uhu3mo ago
this looks like a pretty straight forward grid actually to me but with the first elements in each column position: relative for the offset and a couple of align-self: end?
Jochem
Jochem3mo ago
I'd personally divide this into 7 column grid, with a number of rows, and position the elements in their appropriate grid slots using grid area or just refering to start and end columns
se-alexdiaz
se-alexdiaz3mo ago
no what if the gaps also have different sizes, like this
No description
capt_uhu
capt_uhu3mo ago
this wouldn't really change my answer. Note that the images don't have to take up 100% of the width and height of the declared grid areas. As in the center element. The perceived gap size inconsistency on the right edge could just be an image taking up only 90~% of the available grid area width.
se-alexdiaz
se-alexdiaz3mo ago
alrighty, i will try. Thank you for you input. I appreciate it.