+ 4

CSS=> Navigational bar overlapping contents immediately below it.

I have been unable to find the solution of this problem. I asked it earlier on discussion forum as well. Whenever I make the navigation bar's position fixed at the top of the page, the content immediately below the navbar gets hidden behind it or navbar overlap other content. I read somewhere that whenever we change the position to fixed, it immediately removes that element from the normal flow of the document. Why this happens and what's the solution?? https://cdpn.io/croy4744/debug/eYdaQEg/bYAdypGaXmWk

24th Jan 2021, 3:36 AM
CHANDAN ROY
CHANDAN ROY - avatar
3 Antworten
+ 5
Add media queries for different width
24th Jan 2021, 3:50 AM
JOY
JOY - avatar
+ 4
Add padding-top to #welcome-section 160/170px
24th Jan 2021, 3:41 AM
JOY
JOY - avatar
+ 4
JOY Sir, but the height of navbar keeps changing as the width of viewport changes. How can I apply the correct padding-top in this situation???
24th Jan 2021, 3:43 AM
CHANDAN ROY
CHANDAN ROY - avatar