I am trying to set up a hero section where the div takes up 100vh minus the height of the header. I originally set the css height property to calc(100vh - 310px). 310px is the height of the header on my monitor. However I am trying to find a responsive solution, where the height of the header is dynamic and can change based on screen size. Not sure how to go about doing this. I assume it is not possible using css and am fine using javascript/jquery to solve this.
<header></header>
<div class="heroSection"></div>
.heroSection {
height: calc(100vh - 310px)
}