naiani
08-22-2007, 04:15 PM
Guys, I just found this 3-column layout here (http://www.strictlycss.com/examples/three-column-layout-6.asp).
I need to know what is causing the footer to the bottom, making the minimum height always equals to 100%, because I need it for my website.
I already tried to find out what is doing the magic, but couldn't figure it out. I commented and uncommented every single DIV but the footer always stick to the bottom. I tried to use the attributes and values that I could find in the source that I thought that could be related to it (min-height and height to the container, fixed height with negative margin to the footer), but still couldn't do it.
Can anyone help me with this? min-height and height don't seem to work by themselves, but I don't have idea about what could trigger their effect.
-----
EDIT: OK, I managed to make the bottom of the page stick to the bottom of the viewport (with the html, body {height: 99.3%;} part that I had forgotten to put in my code). But now the #footer keeps moving up when the content of the #content column is too small. What to do?
I need to know what is causing the footer to the bottom, making the minimum height always equals to 100%, because I need it for my website.
I already tried to find out what is doing the magic, but couldn't figure it out. I commented and uncommented every single DIV but the footer always stick to the bottom. I tried to use the attributes and values that I could find in the source that I thought that could be related to it (min-height and height to the container, fixed height with negative margin to the footer), but still couldn't do it.
Can anyone help me with this? min-height and height don't seem to work by themselves, but I don't have idea about what could trigger their effect.
-----
EDIT: OK, I managed to make the bottom of the page stick to the bottom of the viewport (with the html, body {height: 99.3%;} part that I had forgotten to put in my code). But now the #footer keeps moving up when the content of the #content column is too small. What to do?