views:

159

answers:

3
+2  A: 

You want to place the footer in relation to... what? I guess "at the absolute bottom of <div id="wrapper">"? Then you need to make your wrapper either position: relative; or position: absolute;. Absolutely positioned elements orient themselves on the closest parent that has a relative, fixed or absolute position. From your CSS that would seem to be the nothing but the <html> or <body>.

Also, both your info-footer and footer elements would be positioned at the very bottom layered on top of each other. Is that the desired effect?

Maybe you could post a mockup of what you want it to look like, and what it looks like now?

Is it really necessary to do it this way, instead of just having the content push the footer down "naturally"?

EDIT: Not sure if I understood it correctly, but what about simply repeating the background image along the bottom of <body>?

body { background: url(image.jpg) repeat-x center bottom; }
deceze
A: 

In response to edit 2: position:absolute takes Elements out of the document flow, thus their heights will not be enforced on their parent (or, the parent won't grow to accommodate them). That's why adding a height will work; but, if your absolutely positioned Elements wind up being taller than that height that you set, the same thing will happen.

In the above, it looks like div#info-design doesn't need to be positioned absolutely at all (from what I can tell). You could remove that declaration, give it a margin-bottom equal to the height of div#footer and achieve the same effect without relying on setting an arbitrary height on div#wrapper.

ajm
A: 

Does adding margin-bottom: 50px to your #wrapper work?

sakabako