I'm trying to make a div take up the full screen in an angular2 template
Here's what I've attempted so far:
<div class="auth-container">
</div>
In the CSS file:
.auth-container{
height: 100%; //also tried with min-height
background-image: url("assets/images/backgroundimage.jpg");
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
The image stretches to full screen but is cut off by the page height as seen in the screenshot below
When manually setting the height like:
height:550px;
It stretches to full screen but isn't responsive for different screen sizes
What do I need to change in order to extend the height to its maximum?