I have a background image in an element that is 100% height and width.
CSS
#splash{
background-image: url("../img/background_splash.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height:100%;
}
HTML
<body>
<section id="splash">
//contenido
</section>
</body>
Try using vh
and vmax
but do not achieve anything.
Everything works well in all resolutions, except when I go to landscape
from the cell phone. That is, the height does not come to occupy the entire screen if not to where it was rendered the first time in Portrait. As the content exceeds the screen, I have to scroll and when I scroll the white below.
Any ideas?
I already appreciate the interest.