+ Reply to Thread
Results 1 to 5 of 5

Thread: Expand footer to bottom of page, if nessesary

  1. #1
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Expand footer to bottom of page, if nessesary

    I want the grey footer's height to expand to the bottom of the page, if the content does not reach down all the way. I know they have ways for a fixed height footer to stick to the bottom but that's not what i need.
    Attached Thumbnails Attached Thumbnails Expand footer to bottom of page, if nessesary-aviary-localhost-picture-1.png  

  2. #2
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: Expand footer to bottom of page, if nessesary

    http://ryanfait.com/resources/footer...ottom-of-page/
    http://matthewjamestaylor.com/blog/k...om-of-the-page

    or you could have the background of the page be the grey color (illusion of long footer)
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  3. #3
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: Expand footer to bottom of page, if nessesary

    that's not what i needed, and i explicitly said that.


    but you mention having a grey bg, its not going to be a solid grey, but rather an image, the grey is just a place holder.
    Last edited by diabolo; 10-03-2009 at 03:31 PM. Reason: grammer/spelling

  4. #4
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: Expand footer to bottom of page, if nessesary

    in that case, I don't really have a simple answer ready.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  5. #5
    marshian's Avatar
    marshian is offline x10 Elder marshian is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Belgium
    Posts
    526

    Re: Expand footer to bottom of page, if nessesary

    I don't know of any easy way to do this, but I don't like giving up... ;)
    Do you know how to work with negative margins?
    I'd try to give your main content element a height of 100% and using a negative top and bottom margin to make place for header and footer. If that works you still *might* have to add in a couple of tweaks to make it appear the way you want it, but that might just do the trick.

    EDIT:
    Or did I just misunderstand you too? Do you really want to make the entire window grey if the content isn't big enough? :\
    I don't think that'll look too good...
    You could use almost the same trick to achieve this. Give the footer a giant height (eg. 10000px) and then add a negative margin. Say your footer should be at least 100px, then add a margin-bottom of -9900px.
    Last edited by marshian; 10-03-2009 at 05:26 PM.

+ Reply to Thread

Similar Threads

  1. Unique php page
    By bunglebrown in forum Programming Help
    Replies: 48
    Last Post: 11-08-2008, 08:59 AM
  2. Replies: 0
    Last Post: 10-19-2008, 09:40 PM
  3. Joomla Blank Page
    By operati in forum Free Hosting
    Replies: 3
    Last Post: 09-13-2008, 03:05 PM
  4. Slow loading of page
    By ConnorMcLeod in forum Free Hosting
    Replies: 1
    Last Post: 09-05-2008, 09:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers