footer positioning

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

footer positioning

Post by jmcgin51 »

Can someone tell me what part of the template or stylesheet controls the footer positioning?  This sounds like a dumb question; I know where the footer is located in the template, and I can see where it is controlled in the stylesheet, but here's my dilemma:

I started a site with a blank stylesheet and a stripped-down template (essentially content and footer only) with only the one stylesheet associated with the template.  In other words, I'm not using any of the CMS menus, etc.  The site is all layed out and looks like I want, but I can't get the footer to show up at the bottom of the page where I want it.  If I try to position it absolutely, it looks OK on the homepage, but ends up in the middle of the text on some longer pages, and if I try to position it relatively (following the content div), it appears consistently at the top of the page.  I thought relative positioning should work, but it's not working.  How can I get my footer to appear consistently at the bottom of my pages???  Seems like there should be a simple fix, but obviously not simple enough for a simpleton like me!!

Thanks for your help...
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: footer positioning

Post by tsw »

jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: footer positioning

Post by jmcgin51 »

tsw -
thanks for your response.  This certainly looks like it would work, but I don't think CMSMS uses this method, so how does CMSMS accomplish an appropriately-placed footer?  I try to keep my pages as small and clean as possible, so if there's a way that's more natural to CMSMS, I'd rather use it.

Thanks again
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: footer positioning

Post by tsw »

default stylesheets use

div#footer {
clear:both;
}

which will force footer below every other item before it in source no matter how long they are.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: footer positioning

Post by jmcgin51 »

I think this may be what I've been looking for; I'll give it a try - thanks, tsw!!
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: footer positioning

Post by jmcgin51 »

well, it didn't work...  maybe I'm stuck with the footerStickAlt fix...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: footer positioning

Post by Dr.CSS »

Do you have a link to the site so we could look at it?
Post Reply

Return to “Layout and Design (CSS & HTML)”