The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Scroll content under navbar .

  • # April 29, 2013 at 10:07 am

    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.

    # April 29, 2013 at 10:15 am

    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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed