![So I want the parent div to have enough height to fit the child div(as shown in the snapshot). Worthy to not I used position: relative and edited the child div's positions So I want the parent div to have enough height to fit the child div(as shown in the snapshot). Worthy to not I used position: relative and edited the child div's positions](https://preview.redd.it/qbvo5ae362i91.png?auto=webp&s=633ab4010a318bf3c04b2b72bd790f9673d51f3a)
So I want the parent div to have enough height to fit the child div(as shown in the snapshot). Worthy to not I used position: relative and edited the child div's positions
Any way to animate the height of a div with height="auto" when the content of that div changes size? · framer motion · Discussion #1884 · GitHub
![javascript - How to automatically extend parent height when the total height of children overflows? - Stack Overflow javascript - How to automatically extend parent height when the total height of children overflows? - Stack Overflow](https://i.stack.imgur.com/gvTPX.png)