Html – How do I resize an image while keeping the aspect ratio if my parent container size is unknown, and dynamic
I'm making an image gallery. While working on the feature that brings the image to the full size of the browser window I realized that I can't specifically set the size of the parent element that the img belongs to…