I am developing a page for my website that displays artwork images. The images are loaded dynamically (using JavaScript setInterval() method every 2 seconds for testing purposes). The images themselves are stored in the Uploadcare Amazon server, but they are basically URLs like this one my Fredric Remington:
or this:
or this
So an artist will upload images onto the website with widely different aspect ratios and sizes.
See them displayed here: gallery concept
In the HTML I have a div within a div. I don’t understand from Webflow Univ how the fit property works to achieve the end result I want.
The child div (with the ‘hero’ image) has a URL as above. The parent div CSS provides stability on the page with width and height properties.
I would like the the images (in the child) to be contained within the parent div and scaled down if needed so they don’t bleed out beyond the the parent div. If you run through the demo above, you will see most behave nicely. But some “children” are unruly and bleed down outside the parent.
I can not tell if this is something I can address with CSS, or with Uploadcare in the structure of the URL.
(I’ll be posing this question to them as well.)