Is there a way to create a hero section that fills 100vh minus the height of the header, especially when the height of the header is not fixed? I initially used CSS with a height property set to calc(100vh - 310px), where 310px represents the height of the header on my screen. However, I am looking for a responsive solution that adjusts based on different screen sizes. If CSS alone cannot handle this, I would be open to using Javascript or jQuery.
<header></header>
<div class="heroSection"></div>
.heroSection {
height: calc(100vh - 310px)
}