Forums

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

Home Forums CSS What is the problem?

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #46323
    techaboard
    Member

    Hello guys i am making one of my first Websites, i made the navigation and just added a paragraph tag but the content of the paragraph tag colides with the navigation.See the codepen link for what i mean
    http://codepen.io/anon/pen/eAsHn
    Please help, All help Appreciated

    #142340
    chrisburton
    Participant

    You have `position: fixed;` (along with `position: absolute;`) in your #mainNav.

    #142343
    techaboard
    Member

    Thanks you for your quick reply, but it still doesn’t seems to work.Once again thanks for your help.:)

    #142344
    Eric Gregoire
    Participant

    Removed

    position: absolute;

    that @chrisburton was referring to which was taking the nav out of the document flow: http://codepen.io/Boogiesox/pen/AJHcl

    Is this what you’re looking for?

    #142345
    techaboard
    Member

    Thank You @chrisburton and @boogiesox You guys just saved me tons of time thinking about the problem.

    #142347
    techaboard
    Member

    Just one more thing i would like to ask, how should i make the navigation stick to the top.

    Once again all help appreciated :)

    #142348
    Eric Gregoire
    Participant

    Working with what you have, you’ll have to apply fixed position to your nav, but that’ll break it again. You could wrap the paragraph in a div and give that a top padding greater than the nav height to fix it.

    #142410
    techaboard
    Member

    Ok thanks for your help :)

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