I need to make the .content div use the remaining screen height. I don´t know what´s the height of .header - I can´t use calc(100vh - headerHeight)
HTML structure
<html>
<body>
<div class="header">header</div>
<div class="content">content</div>
</body>
</html>
CSS
html, body {
height: 100%;
}
Tried with
.content {
display: flex;
flex-grow: 1;
}
using 100vh didn´t work because it generated some vertical scroll (with the height of the .header)
.content {
height: 100vh
}
it should look like this
+-------------------------------+
| header |
+-------------------------------+
| |
| |
| content |
| |
| |
+-------------------------------+