The nav bar is set to position: fixed;. The problem is the cover section below it act like there is no nav bar and align to the top of the page. This causes to cover some portion of the cover section (image).
Codepen link: https://codepen.io/nimanthadilz/pen/GRZVqvb?editors=1100
I was thinking adding some padding to the top of the body element. But how can I correctly align the cover section right below the nav bar ? There is a media query also, which changes the navbar when screen width below 600px.
Actually I am not clear how to implement what you are explaining. I don’t know how to get the height of the <nav> element into a variable. I tried googling.
I guess it should be something like this but not sure: