CSS: How to make a footer which really stays on the bottom
Sunday, 30. March 2008
One problem Jonathan Longnecker run into pretty frequently when coding a site in to XHTML and CSS is making his footer dock to the bottom of the screen. It¢â‚¬â„¢s especially annoying if you have a page that¢â‚¬â„¢s short on content and the footer, which happens to be a different color that the body background doesn¢â‚¬â„¢t stay at the bottom of the browser window:
I can hear you say, ¢â‚¬Å“But why don¢â‚¬â„¢t you just do a fixed position on it. That¢â‚¬â„¢s easy enough.¢â‚¬ True, but if you do that then it¢â‚¬â„¢s always at the bottom of the screen no matter how tall the window is. So if I have a page with a lot of content that footer shouldn¢â‚¬â„¢t show up until the content is done. How do we fix this? Let me show you. Here¢â‚¬â„¢s what the problem looks like:

| Popularität: 13% | Tags:


Und was können Sie für Sie tun?