Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #28283

    I’m interested in acheiving a boxed layout with margins at the top and bottom. The second solution you gave in this thread worked (although the first didn’t, and I’m also on chrome).

    Anyways, I’m hoping you can tell me how to incorporate this with a sticky nav menu. If my top and bottom margins are set to 40px, when I scroll down the page the sticky menu stays at 40px and cuts across the page as it scrolls up.

    Thanks a lot!



    What type of header do you have? If you’re using Small fixed header, you can do this:

    #header {
    top: 28px;
    background: #fff;

    .header-scrolled {
    top: 28px !important;

    .fixed_header #main {
    padding-top: 48px;



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

The topic ‘boxed layout with margins and sticky nav’ is closed to new replies.