(But because it’s more than 4 months old and still not resolved, Sitepoint suggested I create a new thread.)
Anyways,
As you can see this footer is not positioning itself all the way across the screen when you resize the window to be smaller than the footer width. This is especially annoying in 800x600, as my websites are optimized for 1024x768.
I used the div push for a sticky footer and would experience the same problem, but then I converted to Paul’s suggestion to use his sticky footer and it works perfectly. I believe in the thread that you refer to it was indicated to use that footer, but it appears you are still trying to use the div push technique
Correct me if I’m wrong, but it’s ok to either pull the footer up over the bottom of the min-height: 100% pagewrapper, OR to pull the 100% pagewrapper up with a negative top margin itself. Either way is basically Paul’s method and neither require any <div class=“divitis”></div>.
You can, but if you pull the wrapper up via a negative margin then you have to top pad the first inner element equally (the h1 or whatever). I like to take care of it at the source (the footer area). I just give the last element inside the wrapper (probably a div) bottom pad equal to the height of the footer.
Close the window then scroll to the right and you will see the header is cut short. This will happen in any layout like that and will happen on this forum page if you try the same approach.
It has nothing to do with the sticky footer and is simply that a 100% wide element is only as wide as the viewport and if you scroll outside of the viewport then that is greater than 100% so the element won’t be there.
If you set your sticky footer to have a min-width equal to the width of your layout then the problem would be avoided.
If that doesn’t make sense to you are you are still unclear then ask more questions and we’ll try to clarify a little more. It would also help if we had a link to the layout you want fixed so that we can try this in a real example which may be more pertinent.
This is exactly what I was looking for, as it doesn’t resize the footer when the window is smaller. I guess CSS Sticky Footer sites still need to update their code
One more question about this. I am trying to find a way to have the footer be 100% width, rather then a set width. (To have the footer background go all the way across the screen at the bottom). However, when it set “width:100%” on the footer in CSS it gives me the same issue when I resize the window (that gap on the right)
Is there a working example of this for a “100% width CSS Sticky footer”?
Thanks