Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Apr 2009
    Posts
    51
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Need to stretch Div to bottom of page

    I have attached my html and css files - I want to stretch #footer to the bottom of the page... how can I do that? I tried height 100% but it did not change.

    Any suggestions?
    Attached Files Attached Files

  • #2
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    Using 100% will only drop it when you add more content to it. Take out 100% and try this.

    700px

    and see what you get.
    Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?

  • #3
    New Coder
    Join Date
    Apr 2009
    Posts
    51
    Thanks
    5
    Thanked 0 Times in 0 Posts
    The problem with adding 700px is that it makes the page that long as well. Thanks anyways.

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    I have attached my html and css files
    Any way to see a link to your page?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    cmcconnell (06-02-2009)

  • #5
    New Coder
    Join Date
    Apr 2009
    Posts
    51
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Well, I don't have it up yet. It's a pretty trivial reason that I want to get this to work: I use a CMS that when my clients edit pages online, it sets their background to the body background instead of white, so I wanted to keep the body bg white for them editing so they don't get confused, but I guess I will actually have to set the bg color to the light brown color. Thanks for taking the time to look at this!

  • #6
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    Oh its the footer, you want to have it stay on bottom correct?

    Add this to footer and see if that works.

    PHP Code:
    positionabsolute;
        
    bottom0px
    Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?


  •  

    Tags for this Thread

    Posting Permissions

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