How to make a footer under a DIV?

Associate
Joined
28 Apr 2004
Posts
269
4tkmfte.gif


In the above picture , the bottom has a dark background that goes behind the yellow "text content" DIV.

I've tried to make my page look like this, but the dark bottom just displays in full after the yellow "text content" DIV, not behind it.

Could you help me on how to make it go behind the yellow DIV?
 
Associate
Joined
9 Jun 2006
Posts
954
Location
Manchester
There's a few ways this could be achieved.

- You could float the div of the top of the footer.
- You could use absolute positioning and z-index to create what essentially are layers.
- You could simply use a background image that has been positioned further down the div.
 
Associate
OP
Joined
28 Apr 2004
Posts
269
toosepin said:
- You could simply use a background image that has been positioned further down the div.

if I use a background image, how do I setup the white part of the page (say the body background is red)?
 
Back
Top Bottom