Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Fixed Menu: Moving the Content Down

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44904
    siouxfan45
    Participant

    [http://codepen.io/anon/pen/lsztg](http://codepen.io/anon/pen/lsztg “”)

    Please refer to the CodePen above. I am creating a classic fixed menu.

    To do this properly I need to move the rest of the content of the site down the page a number of pixels equal to the height of the menu. However, when I add a margin to the top of the rest of the content (#major_wrap) it adds that margin above the fixed menu rather than just to #major_wrap. How do I add the margin only to #major_wrap? I realize I can do this with padding but that doesn’t seem like the best solution.

    #135754
    wolfcry911
    Participant

    set top: 0; on the #menu_container

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.