I know this might sound like a duplicate but I have checked so many answers and tried so many apparent solutions, none of which have worked, that I thought I'd post my specific (non-working) example. Amongst others, I have tried all of the answers to this question, without success:
How to make a floated div 100% height of its parent?
I am trying (as many people have attempted, before me) to get two left-floated divs occupying the full height of their parent, itself set to 100% height.
<!DOCTYPE html >
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<title>Div height test</title>
<link href="divstyles.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div class="feedback">
<div class="feedback-column" id="column1">
<p>This is column 1</p>
<p>This is column 1</p>
</div>
<div class="feedback-column" id="column2">
<p>This is column 2</p>
<p>This is column 2</p>
<p>This is column 2</p>
<p>This is column 2</p>
<p>This is column 2</p>
</div>
</div>
</body>
</html>
divstyles.css:
.feedback {
height: 100%;
background-color: #333333;
}
.feedback-column {
height: 100%;
width: 50%;
float: left;
display: table-cell;
}
#column1 {
background-color: #999999;
}
#column2 {
background-color: #cccccc;
}
Amongst many other things, I have tried positioning the outer div relative and absolute and the inner relative and absolute and combinations thereof. I've also tried setting the parent to display: flex; to little effect (the change made the outer div as high as the tallest div, but did not affect the smaller div).
I've had this on a task backlog for a couple weeks now and have intermittently attempted to solve it and given up temporarily. Is there seriously no way to do this? And, if not, does anyone know when this simple, necessary layout will be possible with html and css?