https://codepen.io/mehtavandit/pen/bGEgYyB

Not able to solve error

" The navbar should always be at the top of the viewport"

Welcome, vanditmehta.

I suggest you use the built-in analyser tool to find syntax/logic errors within your code.

Also, some things to note when using CodePen:

  1. CodePen does not expect any content outside the body tags.
  2. All meta, link, and script information must be put in the :gear: settings section of the HTML editor.
  3. You do not need to/cannot link the CSS in your HTML, if you place the CSS in the appropriate section.
  4. If your project uses React, use the Babel preprocessor, and link the CDN in the appropriate :gear: section.
  5. The editors offer the ability to format and analyze your code, providing useful information about forgotten closing tags etc.

If you are still confused with how to use CodePen, please read the official documentation.

Hope this helps