How to configure the FOOTER

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
aivanovas

How to configure the FOOTER

Post by aivanovas »

Hi everyone, My footer is always staying in one line. For the main page it looks ok, but for the rest it is not. I want to make footer always be at the bottom of the page but it's staying in one possition. How I can chenge setting of it, because i found only ht to change the style and footers content. Thank you
3dcandy

Re: How to configure the FOOTER

Post by 3dcandy »

Hiya, have you got a link so someone can take a look please?

:)
r00ki3
Forum Members
Forum Members
Posts: 87
Joined: Thu Apr 12, 2007 11:16 am

Re: How to configure the FOOTER

Post by r00ki3 »

Hi there,

Are you still having this problem?
If you do so...
Here's the answer:

Your footer is a DIV and it's not possible to place DIV's always @ the bottom of a site (i dont know why this is impossible in css...stupid thing).
It is possible to place the DIV in an absolute way...but if your pages are getting longer and the people need to scroll, your footer will stick to that position :S

How did i solve this problem?:
I used the following script


window.onload = function() {
  dh = document.documentElement.clientHeight;
  wh = document.documentElement.scrollHeight;
  if (dh >= wh) {
    f = document.getElementById('footer').style;
    f.position = 'absolute';
    f.left = '50%';
    f.width = '752px';
    f.marginLeft = '-377px';
    f.top = dh - 32 + 'px';
  }
}


The element ID must be the same as you use.
You can play around with the values to get the footer on the right place ;)

Good luck with it!
WuddyT

Re: How to configure the FOOTER

Post by WuddyT »

This could be of some help.
http://alistapart.com/articles/footers
I use this script in a project (not with CMSMS) and it works (see http://www.wuditi.it/zanettin/template.html)
Hope it helps.
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: How to configure the FOOTER

Post by JohnnyB »

Here's another to look at:
A sticky Footer solution:
http://ryanfait.com/sticky-footer/
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How to configure the FOOTER

Post by RonnyK »

I posted a link in another topic some days ago.

http://forum.cmsmadesimple.org/index.ph ... l#msg57888

Ronny
Post Reply

Return to “Tips and Tricks”