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.
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.
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 theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
Last edited by diabolo; 10-03-2009 at 03:31 PM. Reason: grammer/spelling
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 theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
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.