Adapt size to width of parent div
I have an image with aspect -ratio : 1 , max -width = max -height = 200px , and the parent div max -width = 600px . I want the size of this image to be 1 /3 of the parent size width . so e .g . parent div width = 600 - > image width and height = 200 parent div width = 300 - > image width and height = 100 how can I do so ? [here ] ( https://toddle.dev/projects/turquoise_o_en_lars_permanent_chicken/branches/start/components/test?leftpanel=design&canvas-width=867&canvas-height=800&rightpanel=style&selection=nodes.root ) a sample app to implement this thanks