I need to build a small image collage. Like this: 
I came pretty close with a flexbox and overflow:hidden; but it has too many draw backs. Like some posts get cut off.
I also came close with masonry.js but that wasn't ideal either. There was some weird gaps and image order gets scrambled.
I'm doing it in a Wordpress template so HTMl,PHP,CSS,JS is all good. GUI is good too, whatever.
Ideally the first image would be the newest post, Second is second newest and so on up to six.
The size labels I put on the image are kinda flexible, as long as it scales for different size screens.
If plugins are needed to resize images, create different sizes, etc. I'll try it.
The images are a custom WP field (main_image) from a post content type.
Read some of masonry in this link
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With