Results 1 to 4 of 4

Thread: Div distance

  1. #1
    Join Date
    Oct 2010
    Posts
    19
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Div distance

    Hallo,

    I got a question.
    I got a main div and a footer div.
    Sometimes the main div is larger then the other one depends on which page he is.
    So i want that the footer div wants to move with the height of the page and not overlay the main div.

    So i want something that the footer div takes so much distance from the main div. Some code like that.

    Is this on somehow possible? I guess its possible only dont know how.
    Hope somebody knows.
    Thanks in advance.

    Greetz,
    Jan24

  2. #2
    Join Date
    Oct 2010
    Posts
    19
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    anybody have any idea how to solve this?
    Alright i might have not been cearly enough. So i will explain it again.
    HTML Code:
    <div id="header">
    // For example this as a height got from 200px. (in css)
    </div>
    <div id="main">
    //  Here i put top:210 so he doesnt overlaps the header. (in css)
    </div
    <div id="footer">
    // I can put here bottom:0 (in css), but then he still overlaps the main div.
    </div>
    Anybody knows how i can solve this problem?

  3. #3
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    You need to post your full code. As I guess I'd say your not setting a position mode which makes the top and bottom have no function.
    Corrections to my coding/thoughts welcome.

  4. #4
    Join Date
    Oct 2010
    Posts
    19
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    Already solved still thanks for reply

Bookmarks

Posting Permissions

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