After implementing code found at this source to create a sticky navigation bar at the top of my webpage, I encountered an issue. When I tried adding my actual navigation content into the navbar, it appeared about 20 pixels below the top and then snapped back up when scrolling.
Below is the content I added under the nav:
<div id="navbar">
<ul id="navlist>
<li><a href="#">About</a></li>
<li><a href="#">Prints</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
I'm puzzled as to why the addition of a list or div within the nav element causes this issue. Any insights on how I can resolve it? View the problem in action here: http://jsfiddle.net/x4GQ5/3/