Footer is displayed right after header

Discussion in 'CSS' started by Sensei.Design, Sep 17, 2011.

  1. #1
    Hey guys,

    I am struggling with this error for a few days already and also checked with a few friends but we didn't find a solution. Here is my code:



    Any thoughts how to fix this? As far as I can tell the problem is the position: absolute; in the wrapper but it's needed to display the background.

    /edit: solved my problem by adding an extra div with margin: auto; thread can be closed.
     
    Last edited: Sep 17, 2011
    Sensei.Design, Sep 17, 2011 IP
  2. Peter Davis

    Peter Davis Peon

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    use div id="clear", i think footer will get its real position.
     
    Peter Davis, Sep 29, 2011 IP
  3. Sensei.Design

    Sensei.Design Prominent Member

    Messages:
    3,847
    Likes Received:
    162
    Best Answers:
    0
    Trophy Points:
    310
    Digital Goods:
    1
    #3
    Solution is not working but if you had read my post it's already solved ....

    Close Please
     
    Sensei.Design, Sep 29, 2011 IP
  4. flithost

    flithost Peon

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    use div id="clear", i think footer will get its real position.
     
    flithost, Oct 17, 2011 IP
  5. Sensei.Design

    Sensei.Design Prominent Member

    Messages:
    3,847
    Likes Received:
    162
    Best Answers:
    0
    Trophy Points:
    310
    Digital Goods:
    1
    #5
    is anybody even reading the first post? Problem has long been solved ....
     
    Sensei.Design, Oct 17, 2011 IP
  6. trendgfx

    trendgfx Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Glad you solved the problem and the same problem is faced by many here and elsewhere. This is just for future reference:

    These kind of positioning problems can be easily fixed with these 2 codes in your CSS:
    Just saying :)
     
    trendgfx, Oct 17, 2011 IP