Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jan 2006
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Absolute and Relative Positioning

    Howdy,
    Absolute positioned divs use there containing box as there reference point, correct? For me they seem to use the viewports top left corner as a reference point instead.

    Does a absolute positioned div need to be placed in a relative containing box to use the containing box as its referenc point?

    Thanks,
    PoJ

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Quote Originally Posted by prophetofjah View Post
    Does a absolute positioned div need to be placed in a relative containing box to use the containing box as its referenc point?
    Yep. An absolute block is relative to its relative container (the viewport if there isn't one defined).

  • #3
    New Coder
    Join Date
    Jan 2006
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks Richard!


  •  

    Posting Permissions

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