Make sure that you set the body min-height to 100vh body { min-height: 100vh; }