![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?width=640&crop=smart&auto=webp&s=860540e10763bd0468fc67747cb7ebb56258919e)
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
![html - How to put divs on opposite sides of parent div, with parent width relative to them on scaling? - Stack Overflow html - How to put divs on opposite sides of parent div, with parent width relative to them on scaling? - Stack Overflow](https://i.stack.imgur.com/spPER.png)
html - How to put divs on opposite sides of parent div, with parent width relative to them on scaling? - Stack Overflow
![html - Is there a way to make a child DIV's width wider than the parent DIV using CSS? - Stack Overflow html - Is there a way to make a child DIV's width wider than the parent DIV using CSS? - Stack Overflow](https://i.stack.imgur.com/MRgm9.gif)