Jump to content


CSS Footer Sticky help!


10 replies to this topic

#1 °•Guru•°

    Young Padawan

  • Members
  • Pip
  • 73 posts
  • Gender:Male
  • Location:Australia, Sydney

Posted 27 October 2006 - 01:29 AM

hey all,

Yes i have googled "sticky footer" and everything i have found HASN'T worked :)

does anyone know good tutorials or knows how to do it cheers :)

#2 greg

    Jedi In Training

  • Members
  • PipPip
  • 499 posts
  • Location:New York City
  • Interests:Fine art, web and graphic design, naval architecture, chess, and sports.

Posted 27 October 2006 - 02:16 AM

How to do what? State your question.

#3 °•Guru•°

    Young Padawan

  • Members
  • Pip
  • 73 posts
  • Gender:Male
  • Location:Australia, Sydney

Posted 27 October 2006 - 09:32 AM

hmmm when i put this code in my footer now ends up at the top of the screen somewhere and not aligned properly at all :S:S

What is this other way you know??

cheers 4 the help adam and greg so far :)

#4 °•Guru•°

    Young Padawan

  • Members
  • Pip
  • 73 posts
  • Gender:Male
  • Location:Australia, Sydney

Posted 27 October 2006 - 09:47 AM

ya correct :)
i actually got it working heres the HTML code i used...i used it inside of the <div style> of the footer <div> heres the code:

position: absolute; bottom: 0;

although now i am having a 1cm paddind or space or something underneath the footer so its actually just off the bottom for some reason would you know how to fix that???

cheers :)

#5 greg

    Jedi In Training

  • Members
  • PipPip
  • 499 posts
  • Location:New York City
  • Interests:Fine art, web and graphic design, naval architecture, chess, and sports.

Posted 27 October 2006 - 10:30 AM

Guys, it doesn't work.

Using absolute positioning will make it hover over your content if your content exceeds the page height.

Using relative positioning won't work in all browsers.

Again, I've ran into this before and tried many many methods...

#6 Master Duckling

    Young Padawan

  • Members
  • Pip
  • 45 posts

Posted 27 October 2006 - 04:13 PM

html, body {
height: 100%;
}

that should work :)
Using this every 100% height setting in tables will work :)

#7 greg

    Jedi In Training

  • Members
  • PipPip
  • 499 posts
  • Location:New York City
  • Interests:Fine art, web and graphic design, naval architecture, chess, and sports.

Posted 27 October 2006 - 07:22 PM

It doesn't work with divs.

#8 °•Guru•°

    Young Padawan

  • Members
  • Pip
  • 73 posts
  • Gender:Male
  • Location:Australia, Sydney

Posted 27 October 2006 - 09:11 PM

ahh k do you know a way where it does?? as that is what i'm using for my layout instead of the stock tables

#9 Theros

    Young Padawan

  • Members
  • Pip
  • 6 posts

Posted 28 October 2006 - 09:32 AM

On here, I have successfully implemented it
Here


Also, here is the FAQ on sitepoint that explains it

Edited by Theros, 28 October 2006 - 09:33 AM.


#10 greg

    Jedi In Training

  • Members
  • PipPip
  • 499 posts
  • Location:New York City
  • Interests:Fine art, web and graphic design, naval architecture, chess, and sports.

Posted 28 October 2006 - 10:47 AM

I guess it does work, if you're willing to use a fix.

#11 Theros

    Young Padawan

  • Members
  • Pip
  • 6 posts

Posted 28 October 2006 - 11:35 AM

View Postgreg, on Oct 28 2006, 11:47 AM, said:

I guess it does work, if you're willing to use a fix.

Yep, it does work with some hacks and fixes. However, there are some problem with it with IE7 I think at least on one of my sites





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users