Results 1 to 6 of 6

Thread: Div at the Bottom of Page

  1. #1
    Join Date
    Jul 2010
    Posts
    17
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Div at the Bottom of Page

    Hey people,

    A tiny issue. As you can see the image below, the box in RED is what I'm trying to move all the way down to where the footer is, the way I have done it now is to add "margin-top" but this needs to be done for over 60+ pages, and if I do this, its going to take a long long time. So is there something I can use, that will automatically move the box DIV at the bottom of the sidebar div?


    http://i55.tinypic.com/xcn1x3.jpg

    Any help would be awesome!

    Thanks

  2. #2
    Join Date
    Oct 2010
    Location
    Canada
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Adnan959 View Post
    Hey people,

    A tiny issue. As you can see the image below, the box in RED is what I'm trying to move all the way down to where the footer is, the way I have done it now is to add "margin-top" but this needs to be done for over 60+ pages, and if I do this, its going to take a long long time. So is there something I can use, that will automatically move the box DIV at the bottom of the sidebar div?


    http://i55.tinypic.com/xcn1x3.jpg

    Any help would be awesome!

    Thanks
    If you used a linked stylesheet then the change should be immediate.

    <link href="yourexternalcss.css" rel="stylesheet" type="text/css">

    If, however, you used style="margin-top:XXpx;" within each div tag of your html pages, then you're SOL, I think.

  3. #3
    Join Date
    Jul 2010
    Posts
    17
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Hey there,

    Thanks for your reply.

    I think you got me wrong. I am able to adjust the box downwards by changing margin values.

    BUT, the problem is, I have over 120 SIMILAR pages which all need the same thing done, they have different page heights, so I will have to manually fix this up in all the 120 pages which can be quite annoying. I'm saying, is there a global fix which I can apply the same to all boxes that will position the box on the end of the page?

    Thanks

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

    Default

    I dont know your code but let say you have this code:
    HTML Code:
    <div id=""left-side">
        <div id="help">
        </div
    </div>
    I think you got it linked with a css code so put something like this to your css code:
    HTML Code:
    #left-side{
        height:100%;
    }
    
    #help{
        bottom:40px;
    }
    Then you maybe need to adjust the bottom: px a bit to make it the distance you want.
    After that i htink you will be done
    Hope it helped

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

    Default

    Bottom won't do anything if a position mode isn't set, relative, absolute, fixed, etc.
    Corrections to my coding/thoughts welcome.

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

    Default

    set position on absolute.
    At me this mostly works.

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
  •