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
css - Stretch child div height to fill parent that has dynamic height - Stack Overflow
Give Parent Div 100% Height Of Child Floated Element
How to create same height div as parent height - DEV Community
css - Height of parent div is zero even if it has child with finite heights - Stack Overflow
html - How to make a parent div the same height as its first child? - Stack Overflow
Example div fill height | child div fill parent height - EyeHunts
How to expand floated child div's height to its parent's height in CSS ? - GeeksforGeeks
make container / parent div the height of contained / child divs - cpu20.com
css - How to inherit the div height from parent div without flex to come into play - Stack Overflow
How to get the child element of a parent using JavaScript ? - GeeksforGeeks
html - How to set child div height same as parent - Stack Overflow