Actually the best approach is this:
html { height:100%; } body { min-height:100%; }
This solves everything for me, and it helps me control my footer, and it can have a fixed footer no matter if the page scrolls.
Technical Solution - EDITED
Historically, "height" is a complex thing that can be distinguished, compared with the "width", the simplest. Since css focuses on <body> for styling to work. Code above - we gave <html> and <body> height. This is where the magic comes in - since we have a "minimum height" on the game table, we tell the browser that <body> superior to <html> because <body> holds the minimum height. This, in turn, allows <body> override <html> because <html> had a height already. In other words, we trick the "bump" <html> browser off the table, so we can create the style ourselves.
Faron Jan 19 '13 at 1:32 2013-01-19 01:32
source share