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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:29:04+00:00 2026-06-13T03:29:04+00:00

I am really confused with this. Here I’ve got a div whose position should

  • 0

I am really confused with this. Here I’ve got a div whose position should be fixed after certain scroll. Before position of that div is absolute. I tried it and found that for one of my screens fixing position is really making document less while on other screen it is not.

What I want to know is which of them is a bug? Does fixing position of element decreases document height?

Thanks

  • 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-13T03:29:05+00:00Added an answer on June 13, 2026 at 3:29 am

    If you use a fixed positioning for an element, it is removed from the “normal layout flow”. The height of your document is determined by positioning of all the elements in the page and thus, all changes to positioning affect document height.

    Fixed and absolute positioning are explained in detail in the CSS Visual formatting model spec: http://www.w3.org/TR/CSS2/visuren.html#absolute-positioning

    Regarding absolute positioning (from the spec):

    In the absolute positioning model, a box is explicitly offset with
    respect to its containing block. It is removed from the normal flow
    entirely (it has no impact on later siblings).

    Pretty much the same applies for fixed positioning (Ibid.):

    Fixed positioning is a subcategory of absolute positioning. The only
    difference is that for a fixed positioned box, the containing block is
    established by the viewport.

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

Sidebar

Related Questions

I'm really confused here, can someone explain this to me? request: http://example.com/test.php?var=String's $a =
I`m really confused here about this weird behavior! The thing is, I have a
I am really confused with this one. Here's my code class inner { var
I'm really confused here. Let's say my user story looks like this. A user
I'm really confused here. I am trying to understand this code (it's javascript) but
So I am really confused on how to write this proc. Here is what
I am getting really confused with this concept: If I want to implement a
I am really confused about how I can do this. I need to get
I'm really confused, I just wrote this x = 0 y = 42 #Can
I'm really confused. I'm using Django 1.4 and I've been searching for this the

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.