The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Scroll content under navbar .
Hello. I would like to know how to get my content to scroll under navbar so the header and nav bar is fixed and the rest of content goes underneath with background also fixed which I know how to do it just the oth part fixing header and nav.
You would have to set `position:fixed` on the header **and** add an amount of `padding-top` or `margin-top` equal to the height of the header
Assuming your navbar is inside the header.
Here’s a solution with both header & navbar
http://codepen.io/Paulie-D/pen/fa3d2d164c914fbcbb1bbe97166643ae