I think this might be, what you are looking for: two column layout source.
The main idea is to set height: 100%
on both <body>
and <html>
and then make sure that the container also takes up all the height (via min-height: 100%
). You might notice that code also contains workaround for IE6, because it was originally written, when fighting IE6 was just another day of work.
This was made by modifying a bit more complicated and more often used holy grail layout source.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…