I am using this code. http://jsbin.com/ibecak/1/. I took it from here: http://peterned.home.xs4all.nl/examples/csslayout1.html. This works well.
However I want to center the content div (magenta) in the space between header and footer in the container div (yellow).
How would I go around doing that without breaking anything? I have tried setting display: table-cell and vertical-align: middle on #content, but to no avail.
The important thing for me is that the footer gets pushed down when the window is too small, instead of overlapping everything, but I still want to be able to center #content in the remaining space of #container.
If at all possible, I'd like to know how to do this with only CSS.
Thanks.