min height html body code example Example: min-height not working on body html { min-height: 100%; display: flex; } body { flex: 1; }