Yes you are right. I work to seldom with CSS to be any good at it. Once you are at it: Is there a way to have the footer at the bottom of the viewport if there is no or not much content but have it on the bottom of the document if I need to scroll?
The best way is to use position: fixed, but it is not supported in IE lower then version 7. So if you want it to work on <irony>very nice browsers as ie 6</irony>, you'll have to use javascript to call a reposition function on scroll event.
If you search for 'position fixed for internet explorer 6', you'll probably get some nice examples.
Edit:While reading your question one more time, i realised that you'll need a javascript function that checks the document height against the document scroll height and then reposition the footer based on what you'll find. Also remember to reposition it again if the user resizes the window.
Thanks for your help! But it doesn't really do, what I expected. When you take a look at http://janun.ecobytes.net/ you will see, what I mean. I want to enlarge the content area. And that isn't done with positioning the footer in the bottom of the page, or is it?
Sounds like you want the content area to never be smaller than the screen size. So the footer would either be at the bottom of the screen, or below (if there was lots of content). This sounds like it would be very tricky to do reliably.
Here is a recent article with lots of suggestions and examples for different footer layouts that might be of help...
Seeing that you are German (or understand at least a bit) I would also check the one and only http://de.selfhtml.org/ and, if necessary, ask in the forum there http://forum.de.selfhtml.org/ Although the main posters there can be sometimes a bit standoffish they usually know their stuff.
Claudia
You must be logged in to post messages in this topic!