html { min-height: 100%; position: relative; } body { height: 100%; }