PDA

View Full Version : 100% Auto Footer Height?


Jez
07-07-2006, 09:07 PM
Right can this be done guys?

I have done this (http://www.inter-arc.net/hundred/) little site with css however, there will not be much content in the centre section so i want the footer to go all the way to the bottom of the page/browser.

As you can see when you look at site the footer is there but lots of white space below because of lack of content. I want all that white space to be the footer, its why i just have a solid colour for it.

Can this be done, i am sure i have seen a few sites with the footer 100% across and stuck to the bottom of the browser???

Thanks for any help guys :)

Vin0rz
07-07-2006, 09:38 PM
Well, if your header has a static height you'd have to place it withing the main part, and then you could do:

div.main{
min-height: 80%;
}
div.footer{
height: 20%;
}


Not sure if that's what you'd like or if it works though.

Vin0rz
07-07-2006, 09:39 PM
Sorry double post...