SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2011
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    fixed navigation and <a href="#id"> == overlap

    Hello,

    Here's a problem I'm having a hard time to solve.

    I have a position: fixed nav. It must be about 50px high.

    This nav contains links such as <a href="#reservation"> which brings the user to the #reservation div without leaving the page.

    So far so good.

    Problem is: the fixed nav overlaps the beginning of the div we reach.

    Question: is there a way to tell browsers to follow <a href="#reservation"> and not make it land at the very top of the screen?

    Regards,

    -jj.

  2. #2


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •