1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

move div down page when content gets larger

Discussion in 'CSS' started by Lpspider, Sep 18, 2005.

  1. #1
    Okay, I have a "footer" at the bottom of my page...how do I make that move own when the content above it is larger than the page?
    SEMrush
    I'm currently using a inpage scrollbar, but that doesn't look too atracitive...

    I want to do this on every page - so not have a predefined position.

    thanks.
     
    Lpspider, Sep 18, 2005 IP
    SEMrush
  2. Arnica

    Arnica Peon

    Messages:
    320
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What's the URL?
     
    Arnica, Sep 18, 2005 IP
  3. Amsterdam

    Amsterdam Well-Known Member

    Messages:
    361
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #3
    Without an example it's difficult to see exactly what you mean, but can't you use {clear: both;} for your footer div? This should ensure that it is always at the bottom regardless of what is above.

    T
     
    Amsterdam, Sep 20, 2005 IP
  4. king_cobra

    king_cobra Peon

    Messages:
    373
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i think u have set ur overflow property so as to have inpage scroll bar. just remove that and remove the height property too. that will make it elastic.
     
    king_cobra, Sep 20, 2005 IP
  5. SEbasic

    SEbasic Peon

    Messages:
    6,317
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Only if the above elements have been floated.

    Otherwise position:relative; should do the job.
     
    SEbasic, Sep 20, 2005 IP