3 replies [Last post]
TiNiB
Offline
Regular
Last seen: 14 years 2 weeks ago
Joined: 2004-01-17
Posts: 23
Points: 0

http://www.binitbharadia.co.uk/css/

Just as i have a large black header on this page i would also like to have a black footer on it.

How would i do this as i seem to be getting problems finding a solution.

Many Thanks

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 26 weeks 3 days ago
Joined: 2004-06-30
Posts: 9668
Points: 801

How to put a footer on this page.

Yours is simple, you can just create another div similar to the header, as I see you already did in the css. Try this:

#footer {
clear: all;
width: 100%;
background: url(yourimage.gif);
height: 80px;
}

then just type it in after all the other divs in the html.

Verschwindende wrote:
  • CSS doesn't make pies

TiNiB
Offline
Regular
Last seen: 14 years 2 weeks ago
Joined: 2004-01-17
Posts: 23
Points: 0

How to put a footer on this page.

Hi

Many Thanks, that works.

I didn't know of the 'clear' property.

Do you know how to keep the footer 'glued' to the base of the page.

On large resolution the footer moves up with content.

Thanks

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 26 weeks 3 days ago
Joined: 2004-06-30
Posts: 9668
Points: 801

How to put a footer on this page.

You can use bottom: 0, that should do it.

Verschwindende wrote:
  • CSS doesn't make pies