[–] jackowayed 16y ago ↗ That's cool. I think the most surprising part, upon reading the CSS, is that the only special fixes are for Opera and IE8. So IE7 and IE6 just work. [–] eam 16y ago ↗ And it validates! [–] ErrantX 16y ago ↗ Indeed; but there is the general caveat that you can only use padding to space elements and not margin, which is a bit clunky.
[–] ErrantX 16y ago ↗ Indeed; but there is the general caveat that you can only use padding to space elements and not margin, which is a bit clunky.
[–] briansmith 16y ago ↗ It isn't working on IE8. [–] RevRal 16y ago ↗ It worked in IE8 for me.What exactly goes wrong in IE8 for you? [–] MichaelGG 16y ago ↗ Seems to need a horizonal resize to take effect. Just resizing vertically doesn't do anything. [–] RevRal 16y ago ↗ That's unfortunate.I tested this in IE8 by zooming out. Didn't expect a problem since that worked.
[–] RevRal 16y ago ↗ It worked in IE8 for me.What exactly goes wrong in IE8 for you? [–] MichaelGG 16y ago ↗ Seems to need a horizonal resize to take effect. Just resizing vertically doesn't do anything. [–] RevRal 16y ago ↗ That's unfortunate.I tested this in IE8 by zooming out. Didn't expect a problem since that worked.
[–] MichaelGG 16y ago ↗ Seems to need a horizonal resize to take effect. Just resizing vertically doesn't do anything. [–] RevRal 16y ago ↗ That's unfortunate.I tested this in IE8 by zooming out. Didn't expect a problem since that worked.
[–] RevRal 16y ago ↗ That's unfortunate.I tested this in IE8 by zooming out. Didn't expect a problem since that worked.
[–] ck2 16y ago ↗ Do y'all really care for this on websites you use?It drives me crazy when I am scrolling a large page if there is nothing useful down there, and I immediately adblock it. [–] [deleted] 16y ago ↗ (comment deleted)
[–] braksandwich 16y ago ↗ I love this technique, though its been around for a while.This is where I first saw it: http://www.themaninblue.com/writing/perspective/2005/08/29/
[–] voidpointer 16y ago ↗ This is a good example of what is still utterly wrong today with HTML/CSS implementations. I appreciate the work and the fact that it is shared with the public. The fact that you still have to deal with this sort of markup in 2010 is really sad.
[–] wrinklz 16y ago ↗ It's cool, but why not just stick a minimum height in your content div? [–] Pheter 16y ago ↗ That wouldn't work very well because it may add scrolling to your page when it isn't necessary.
[–] Pheter 16y ago ↗ That wouldn't work very well because it may add scrolling to your page when it isn't necessary.
[–] mtarnovan 16y ago ↗ Or just use Compass with Blueprint http://wiki.github.com/chriseppstein/compass/ and it's one line of code from there:+sticky-footer(200px)
[–] terryjsmith 16y ago ↗ Same technique, tested in IE6 to IE8, FF, Chrome, Safari and Opera; no conditionals: html, body, #canvas { height: 100%; } body > #canvas { height: auto; min-height: 100%; } #canvas { width: 100%; position: absolute; } #footer { position: absolute; bottom: 0; } HTML: <body> <div id="canvas"> <!-- all of your other code --> <div id="footer"></div> </div> </body> [–] [deleted] 16y ago ↗ (comment deleted) [–] terryjsmith 16y ago ↗ Updated, thank you.
18 comments
[ 4.3 ms ] story [ 98.4 ms ] threadWhat exactly goes wrong in IE8 for you?
I tested this in IE8 by zooming out. Didn't expect a problem since that worked.
It drives me crazy when I am scrolling a large page if there is nothing useful down there, and I immediately adblock it.
This is where I first saw it: http://www.themaninblue.com/writing/perspective/2005/08/29/
+sticky-footer(200px)