The following story is not passing : Your #nav-bar should always be at the top of the viewport

My code is : https://codepen.io/computerscience23/pen/rNJzexG
Help me to find the error.

Hum, I wonder why I can’t see the test dialog box or hamberger menu.

But looking at your code… making something fixed doesn’t necessarily mean its at the top of your viewport… you have to also specify where you want it fixed.

I can’t fix the error.

You have to specify the top margin of the #nav-bar to be 0.

Error still exists. You can check : https://codepen.io/computerscience23/pen/rNJzexG

You can try using top:0 instead of margin-top:0. The test pass for me after that.

Thank you! Your suggestion worked.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.