Streaming live at 10am (PST)

Nav bar symbol is collapsing when changing position from static to fixed

Newbie here following the crash course and building as it progresses. If I simply drop in a nav bar without changing anything and change the position to ‘fixed’, it collapses to the left. What am I doing wrong?


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Hey Ernest.

You have to specify a fixed width on the element when using position fixed. Try giving the element a width of 100% or 100vw to make it cover the screen.

Hope that helps

Felix

thank you! They excluded that from the tutorial…

Oh. That makes it a bit confusing!

Glad it helped

Cheers