See Parent Div Block is set to Flex and its Child Element has WidthHeight of 400px300px,
Parent Auto Size based on the content inside it but here Parent Element is not Auto Resizing, Why ?
Here is my site Read-Only: LINK
(how to share your site Read-Only link)
Hi Anil,
Parent divs are not supposed to behave like Children elements, it’s the other way around. Only contained elements are supposed to be resized with the parent-div instructions and alignment directions…
If you want the child element to get wider, you need to delete the width and height values and maybe consider working with VH or REM units on the Parent, pixels are not recommended as it’s not fully responsive.
It might also be that you set the parent div to “Grow if possible” in the Sizing tab.
Cheers.