Relative Positioned Container Div Not Expanding to Absolutely Positioned Div

Discussion in 'CSS' started by g123s, Apr 12, 2009.

  1. #1
    Hi,

    I've positioned my container div relative. In the container, I then positioned my center content div absolute.

    The problem: The container div is not expanding with the content div. You can see this because the content div is overlapping my footer which is clear: both.

    You can check out my website: www.2teachreading.comyr.com

    Thanks
     
    g123s, Apr 12, 2009 IP
  2. g123s

    g123s Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yeah, we need some help.
     
    g123s, Apr 12, 2009 IP
  3. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #3
    And it should not. Absolutely positioned elements are removed from the normal flow as if they aren't there at all. This behavior is by design.
     
    drhowarddrfine, Apr 12, 2009 IP
  4. g123s

    g123s Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Does it have anything to do with the z-index?
     
    g123s, Apr 12, 2009 IP