SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Web Enthusiast
    Join Date
    Jul 2000
    Location
    Western Massachusetts, USA
    Posts
    1,383
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    anchor not quite working

    I'm creating a sub menu with links to places on page.
    http://www.clickbasics.com/get-info/
    Works fine in IE8, but in FF8 it points below the anchor, so the H2 header of the section is out of the view port. I have tried both
    HTML Code:
    <h2><a name="overview">Overview: How to grow your business online</a></h2>
    and
    HTML Code:
    <h2 id="overview">Overview: How to grow your business online</h2>
    with the same result. What am I missing?
    Paul C.
    ClickBasics
    http://www.clickbasics.com

  2. #2
    Web Enthusiast
    Join Date
    Jul 2000
    Location
    Western Massachusetts, USA
    Posts
    1,383
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never mind. This works
    HTML Code:
    <a name="overview"></a>
    <h2>Overview: How to grow your business online</h2>
    Paul C.
    ClickBasics
    http://www.clickbasics.com

  3. #3
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,272
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    Usually when I use the ID of a heading tag, the heading tag itself shows up at the top of the screen. In Firefox. But setting the destination further up the page helps, yes. Note that that anchor can also still have an id instead of the name attribute.


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
  •