I've been trying to make footer stick to bottom. (When the content of the page isn't too long it would be in the middle of the page)
But I can't come with a solution which would work both when the content is smaller than the whole display and when the content doesn't fit the display.
I've tried google search, but that doesn't really help.
When I work with percentages, it only takes percentages of the current display, not the whole page. So if it's on the bottom (bottom:0) it works when the content is smaller than a screen, but when it doesn't fit just one screen, the footer is on the bottom of the screen but there's the rest of the content underneath.
Anybody has any simple solution?
/e The same is with width. When I make it 100% it's usually ok, but when you make the screen smaller and you have to scroll to the side, the footer ends on the border of the first displayed content.
But I can't come with a solution which would work both when the content is smaller than the whole display and when the content doesn't fit the display.
I've tried google search, but that doesn't really help.
When I work with percentages, it only takes percentages of the current display, not the whole page. So if it's on the bottom (bottom:0) it works when the content is smaller than a screen, but when it doesn't fit just one screen, the footer is on the bottom of the screen but there's the rest of the content underneath.
Anybody has any simple solution?
/e The same is with width. When I make it 100% it's usually ok, but when you make the screen smaller and you have to scroll to the side, the footer ends on the border of the first displayed content.