Make Height Match Dynamic Width To Create Dynamic Squares CSS
This is a fix I’ve got running in my image gallery. The height of the image’s are dynamic- the square images would make the boxes square themselves, but during load, their containers height is
Found from a thread in stack overflow, I hope this helps someone else:
Yeah that’s it, a pseudo element can take on the dynamic height based on the dynamic width.