Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Positioning a footer with CSS

Status
Not open for further replies.

purpleski

IS-IT--Management
Aug 14, 2002
112
FR
Hi

I have now created the outline of my new layout and menu using css as at

and the CSS files are


The bit that I can not get in place is the footer. I want this so that it positions itself at the bottom of everypage. All the pages are of different lengths. I have looked around this forum but can find no tips that work for me. I found some lovely templates at
but could not get them to work with my menu system. Can anybody help with position this footer with CSS.

I want to use CSS not tables. For two reasons it is the way to go and the menu system I have chosen works better that way.

Thanks in advance.

Purpleski
 
How about wrapping the whole page in another <div> and position footer absolutely 0px from bottom? I have looked at your code and noticed you close your </html> three times in this document (should be only once, at the end) and even start it in the middle once. Clean up your code first then try what I suggested. Basically it should work.

Hope it helps.
 
Vragabond thanks for that. I know this is not a CSS questions but the reason for the three open and closing </HTML> tag is because of the two SSI's

menuV.htm
sitefooter.htm

Does this mean than when constructing pages which are to SSI i should not put in these tags?

Thanks

Michael
 
If the pages are only ever going to be included in the body of another page then leave out the open and close tags for <html>, <head> & <body> and any meta tags.



Chris.

Indifference will be the downfall of mankind, but who cares?
 
ChrisHirst is correct Michael. On the included content, only put the coding that is going to be included. The CSS style sheets, the opening HEAD, the closing body & everything in between will be pulled from the main page that holds all the included content.

__________________________
Corey

 
Thanks for that guys about the tags. Now will have to work on the footer as per Vragabond suggestion but I could well be back.

Purpleski

Ps By the way Chris I like the signature!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top