View Full Version : [CSS] Sticky Footer

Ryan Fait
04-14-2007, 09:51 PM
1) CODE TITLE: Stiky Footer


3) DESCRIPTION: I've just coded a CSS sticky footer that's a lot more x-browser than most out there. It's small too :)

4) URL TO CODE: CSS Sticky Footer (http://ryanfait.com/sticky-footer/)

04-14-2007, 09:52 PM
This is (or was, it was moved) in the wrong section. It will probably be put in the Dynamic Drive section, under Submit Your Script:

Also, I don't understand why this is a "Sticky Footer"?

Ryan Fait
04-14-2007, 09:58 PM
It's not really a script, just a bit of CSS to get a footer to stick to the bottom of the page regardless of content length. There are other alternatives out there like Blue's (http://www.themaninblue.com/writing/perspective/2005/08/29/), but mine is just a bit easier for beginners to tackle.

04-14-2007, 11:05 PM
Oh, okay. I don't really think this could make it as a script on DD, considering it's only a simple CSS task, but it does look nice (the page).
I was wondering how you disabled highlighting on the site, though. Interesting.

Ryan Fait
04-15-2007, 12:09 AM
I used image replacement on the text so it's actually a few background images, not plain text. I've been wanting to do that for a while, but it's not very practical on regular sites :)

04-15-2007, 12:45 AM
You could use the PHP image library... but then again, load times would be slow.

04-15-2007, 09:08 AM
Seems to work and it is a css code. It is up to ddadmin if it gets included in the css library or not. A key factor might be how well it behaves in complex layouts.

Ryan Fait
04-16-2007, 01:29 AM
Okay, thanks!