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 1098139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:32:07+00:00 2026-05-17T00:32:07+00:00

Most people are aware of Using absolute positioning on a div whose parent is

  • 0

Most people are aware of

Using absolute positioning on a div whose parent is set to position: relative
will cause the absolute positioned div to become relative to the parent div instead of the body.

My question is, is there a way to remove this effect?

I.E The parent div needs to be set as position relative so it will sit in the layout, however the absolute div needs to be relative to the body, not the parent div.

How can I achieve this?

  • 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-05-17T00:32:07+00:00Added an answer on May 17, 2026 at 12:32 am

    No, you can’t break out of the Containing Block, short of using position: fixed which sets position relative to the viewport (so it scrolls along with the page).

    You’ll need to move the absolute div out of the relative parent, or find another way of solving whatever layout problem caused you to use position: relative. (If it’s a hasLayout problem in IE, try other typical hacks like zoom: 1 or an IE-only height: 1%.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my actual error: No route matches [GET] /members/sign_out Since most people will
As most people are painfully aware of by now, the Java API for handling
Most people I've seen with this problem were using = where they needed ==
Most people seem to declare functions outside the code block that's using them like
Most people seem to build a listener socket and will include events to be
Most people talk about progressive enhancement right now as serving browsers with javascript (enhanced
Most people would agree that internationalizing an existing app is more expensive than developing
Most people have heard of Content Management Systems. However, what basic features should an
Do most people use .NET's SqlMembershipProvider, SqlRoleProvider, and SqlProfileProvider when developing a site with
I know that most people have DirectX9-capable cards but is it really necessary to

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.