child div not taking parent height
Quick Demo (shows the concept, you might need to tweak it). A solution that works in all modern browsers and in Internet Explorer back to IE8 is to add overflow: auto to the parent element. All Rights Reserved. After long searching and try, nothing solved my problem except. Save my name, email, and website in this browser for the next time I comment. height: 50vh; is a way to go. Retracting Acceptance Offer to Graduate School. It is little tricky because, certainly it will display an error. In our current example, the background color of the parent element doesnt cover the full height like it should because the child elements are floated. I agree with you, but this seems to be answering a different question. How can a