CSS: Absolute Footer Problemo - Help?

Soldato
Joined
28 Sep 2004
Posts
8,540
I wouldn't usually ask but I know that this question has been asked before, albeit eons ago, I'm having a bit of trouble at the moment as in where whenever the content is too long it underlaps through the footer which on short length pages is placed on the 'bottom', shown below:

3870xv8.gif


Code:
body {
	margin: 0 auto;
	padding: 0;
	background: #fff url("img/bg.jpg") repeat-x;
	font:  0.9em tahoma, verdana, arial, sans-serif;
	color: #333;
}

#content {
	padding-top: 1em;
}

#footer {
	position: absolute;
	bottom: 0;
	height: 80px;
	width: 100%;
}
That's what I have for the individual divs, what positioning would I have to add onto their, anything to do with 100% heights or anything, I've got myself a bit stuck, thanks to anyone who can help. :)
 
Last edited:
iCraig said:
It is in Firefox for me. :confused: Once you've scrolled down..

Or do you mean visibly at the bottom in any resolution?
Any res at the bottom yeh, pn the long pages it's at the bottom yeh but on the short pages I'd like it pushed to the bottom, hence the "bottom: 0;" but I can't remember how to irradicate the problem by use of positions etc. :(
 
Lol, I might bail out of this in a sense and on "long" pages use a div called "footer2" using the exact same properties except not using:

Code:
#footer {
	position: absolute;
	bottom: 0;

As seen as the page is longer, it will just hit the bottom anyway, haha. Only problem is that at different resolutions this will b0rk so hmph :( :p
 
Back
Top Bottom