![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
![Div-Block not taking full width when Parent Element is Display = Flexbox - General - Forum | Webflow Div-Block not taking full width when Parent Element is Display = Flexbox - General - Forum | Webflow](https://global.discourse-cdn.com/webflow1/original/4X/3/9/8/3984a0ae1f996927f7de24325d540324723ba011.png)
Div-Block not taking full width when Parent Element is Display = Flexbox - General - Forum | Webflow
![html - Css "width:fit-content;" property doesn't work well. Parent element has this property calculates its width smaller than its content - Stack Overflow html - Css "width:fit-content;" property doesn't work well. Parent element has this property calculates its width smaller than its content - Stack Overflow](https://i.stack.imgur.com/v1vzy.png)
html - Css "width:fit-content;" property doesn't work well. Parent element has this property calculates its width smaller than its content - Stack Overflow
![css - How to expand textarea width to 100% of parent (or how to expand any HTML element to 100% of parent width)? - Stack Overflow css - How to expand textarea width to 100% of parent (or how to expand any HTML element to 100% of parent width)? - Stack Overflow](https://i.stack.imgur.com/LUk5q.png)
css - How to expand textarea width to 100% of parent (or how to expand any HTML element to 100% of parent width)? - Stack Overflow
![1. The <img> element should responsively resize, relative to the width of its parent element, without exceeding its original size - HTML-CSS - The freeCodeCamp Forum 1. The <img> element should responsively resize, relative to the width of its parent element, without exceeding its original size - HTML-CSS - The freeCodeCamp Forum](https://global.discourse-cdn.com/freecodecamp/original/3X/9/0/900ee2470c3fbc0e99b8f8a7cef8a07dcfcae6b6.png)
1. The <img> element should responsively resize, relative to the width of its parent element, without exceeding its original size - HTML-CSS - The freeCodeCamp Forum
![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)