Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9012367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:58:42+00:00 2026-06-16T02:58:42+00:00

I am positioning an anchor like so: #test-link { position: relative; bottom: 100px }

  • 0

I am positioning an anchor like so:

#test-link {
    position: relative;
    bottom: 100px
}

As I need it so that when I visit #test-link the page jumps down to that particular section, but 100px higher. Otherwise the page scrolls too far down for what I need.

This works fine in decent browsers, however in IE7, 8 and 9 the relative positioning gets completely ignored.

I’ve tried different ways to fix it such as adding text to the anchor as well as various CSS properties (e.g. display: block) however nothing makes any difference.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T02:58:43+00:00Added an answer on June 16, 2026 at 2:58 am

    Sure enough, IE7 through IE10 don’t go to the relatively-positioned element (but rather to its natural location). There is one exception, IE8 worked just as I had expected. Nearly every browser I checked other than IE worked as expected as well.

    This appears to be an issue with relative positioning, as attempting this with absolute positioning works just fine in IE6 through IE10. This of course doesn’t help your situation since you’re trying with relative positioning.

    The only solution I have found after playing around with this for a while is to replicate relative positioning using margins:

    #movedElement {
        display: block;
        margin: -100px 0 100px;
    }
    

    This gave smiliar results to those we see in other browsers, in all versions of IE. This isn’t ideal, I understand, but it may suffice until better information is found.

    I’ll continue to research this, and return when I learn more.

    You Could Use padding for Padding

    In the meantime, another common approach to adding some whitespace before your target-area is to add margins to expand the space above that element. This is what I’ve done in the example viewable online at http://jsfiddle.net/Px6r9/1/show/#foo.

    #paddedContent {
        padding-top: 50px; /* Adds whitespace above content */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the jQuery positioning plugin from jQuery UI: http://wiki.jqueryui.com/w/page/12138026/Position Positioning works well enough
Absolute positioning is great, but it seems to position it relative to the browser
I need help with positioning two images on a web page. I want both
I have a page that has anchors which link to appropriate sections of a
Instead of absolutely positioning (I have to do that, don't ask why) elements over
I tried positioning a div element using margin-bottom. For some reason the margin-bottom doesn't
I'm running into some positioning inconsistencies between browsers. I'm trying to position a submit
I'm using positioning.position(). but this function is blocking. I want to be able to
I'm trying to control positioning of a jQuery datepicker element. I like the solution
Is positioning all the div s in a page a good technique? div {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.