![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
![Flexbox: vertical space between two divs so that one is right at the top of parent div and the other is right at the bottom : r/css Flexbox: vertical space between two divs so that one is right at the top of parent div and the other is right at the bottom : r/css](https://preview.redd.it/8a741by71mp71.png?width=1502&format=png&auto=webp&s=6ccbe86142261fc6c6f7d97844265476daa14a5e)
Flexbox: vertical space between two divs so that one is right at the top of parent div and the other is right at the bottom : r/css
![How do I snap the div holding the buttons to the bottom of its parent div? - HTML-CSS - The freeCodeCamp Forum How do I snap the div holding the buttons to the bottom of its parent div? - HTML-CSS - The freeCodeCamp Forum](https://global.discourse-cdn.com/freecodecamp/original/4X/e/4/3/e43729e774b383b403ce9daca83b0eaa9205632c.jpeg)
How do I snap the div holding the buttons to the bottom of its parent div? - HTML-CSS - The freeCodeCamp Forum
![css - How to make a div align to the right side of the parent while maintaining its vertical position? - Stack Overflow css - How to make a div align to the right side of the parent while maintaining its vertical position? - Stack Overflow](https://i.stack.imgur.com/yaDMz.png)
css - How to make a div align to the right side of the parent while maintaining its vertical position? - Stack Overflow
![overflow:scroll and The Right Padding Problem - A CSS Only Solution | by Xander Gottlieb | Xander Gottlieb overflow:scroll and The Right Padding Problem - A CSS Only Solution | by Xander Gottlieb | Xander Gottlieb](https://miro.medium.com/v2/resize:fit:1008/1*_O3aWkD0UfmgrlBkL5SEnA.png)