I am trying the following, in order to have the header's height subtracted from the element below it.
header {
height: var(--header-height);
--header-height: 150px;
}
main {
height: calc(100% - var(--header-height));
}
What am I doing wrong?
Why isn't it calculating the "150px" value inside the calc()?