Within my main div, there are two child divs. I want the first child div to have the same height as the parent div, without specifying a height in CSS.
For reference, take a look at this example: http://jsfiddle.net/x8dhnh4L/ The pink div should expand to match the full height of its parent (indicated by the red border).
I attempted using display:flex
as a solution, but it lacks compatibility with IE8+. Additionally, I prefer achieving this with CSS only and avoiding the need for JavaScript.