How to set dynamically 100vh on a section minus the nav above ?
Hey guys,
so here is the codepen link https://codepen.io/noobcoder137/pen/VwBozdY;
I have a <nav>, <main> and a <section> below other and I want to make my <main> 100vh but minus the <nav> so that I immediately see the next section when I scroll a little bit down. I thought setting the height of <main> to 100dvh but it does not work. The only solution I came up with so far is putting the <nav> inside the <main>, but I don’t want it to be nested.
2 Replies