# Product landing page issue with test

**URL:** <https://forum.freecodecamp.org/t/product-landing-page-issue-with-test/471813>\
**Category:** I Built This\
**Created:** [July 31, 2021, 8:25pm UTC](https://forum.freecodecamp.org/t/product-landing-page-issue-with-test/471813 "2021-07-31T20:25:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MagWeb](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/magweb/32/134249_2.png) [@MagWeb](https://forum.freecodecamp.org/u/MagWeb)\
**Post date:** [July 31, 2021, 8:25pm UTC](https://forum.freecodecamp.org/t/product-landing-page-issue-with-test/471813/1 "2021-07-31T20:25:03Z")

</div>

Hi guys! I made a product landing page, run the test and I have one error concerning navbar: " 1. The navbar should always be at the top of the viewport.  
#header or one of its children should be at the top of the viewport : expected 760 to be close to 0 +/- 15". I made my navbar sticky at the top I don’t know what’s going on please help. Here is my solution: [https://codepen.io/MagWebDev/pen/mdmxEWp](https://codepen.io/MagWebDev/pen/mdmxEWp).

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [July 31, 2021, 9:56pm UTC](https://forum.freecodecamp.org/t/product-landing-page-issue-with-test/471813/2 "2021-07-31T21:56:33Z")

</div>

Move the `nav` element out of the `.container` element. I would put it before it just because that makes the most sense.

* * *

You should also validate your HTML and fix the errors.

I would suggest switching the Syntax Highlighting on Codepen. It will help catch syntax errors.

Go to your Codepen profile settings. Under “Editor Preferences” switch the **Syntax Highlighting** to **Oceanic Dark** and save the setting. Go back to the pen and make sure your new setting is working, the code highlighting will be using different colors. Press the down arrow to the right of the HTML code box and select Tidy HTML. Now, look at the HTML, if there are issues you should see tags marked in red. That is the new Syntax Highlighting showing you where the problems are.

Press the down arrow to the right of the HTML code box and select “Analyze HTML” then do the same for the CSS. You can also use a [validator](https://validator.w3.org/) tool.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [January 30, 2022, 9:57am UTC](https://forum.freecodecamp.org/t/product-landing-page-issue-with-test/471813/3 "2022-01-30T09:57:04Z")

</div>

Closed on January 30, 2022, 9:57am UTC

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