English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want a footer image to appear at the bottom of the page. It should not be absolutely positioned; it should rise and fall as the length of the page changes. Here's an example of how it should look: http://www.nofishinmydish.com/page1.html
Here's the page I'm trying to modify: http://www.nofishinmydish.com/test.html
Finally, here's the tag: . Thanks in advance!

2007-02-24 16:39:16 · 2 answers · asked by Jason Kelly 2 in Computers & Internet Programming & Design

2 answers

Properly floating footers are the bête noire of css layouts. There are some very clever hacks shown at this site: http://alistapart.com/articles/holygrail . Be very careful to test this in a variety of browsers. The equal-height columns trick shown there is broken in IE7.

The page you are trying to emulate has dodged the issue by using a fixed-size background image and positioning everything based on that. The weakness of that approach is that it is not at all flexible, and falls apart if the visitor increases his text size.

I know we're all supposed to use css to position everything now, but when you start writing styles like "margin-bottom: -20000px;" I think it's time to admit that there are still a few things that tables do better.

2007-02-24 17:48:37 · answer #1 · answered by injanier 7 · 0 0

The best thing to do is put your whole entire page into stylesheet w/ div's because it is easier to move the items around. You could also use tables is stylesheets too.

2007-02-25 06:08:40 · answer #2 · answered by Expert Answers™ 4 · 0 0

fedest.com, questions and answers