Help with header in codepen

Help with header in codepen
0.0 0

#1

My navbar only stays sticky to the top of the screen when the header tags aren’t wrapped around it. does anyone know how to fix this because i think for the user story you have to wrap your navbar in header tags.


#2

Hi dmoney
I tinkered with it some. Moving this sticky-top class from your nav to your header seems to have fixed it.

<header id="header" class="sticky-top"> 

Good luck!


#3

Thank you so much, I had no idea that that class attribute would work in the header tag. I really appreciate your help