Greetings! I've been attempting to create a responsive background for my landing page, but I'm encountering some difficulties. I tried using height: auto, height: 100%, and margin: 0 auto, but the height of 100% didn't cover the entire screen as I intended. Here's the snippet of my code:
.crossfade > figure {
animation: imageAnimation 48s linear infinite 0s;
backface-visibility: hidden;
background-size: cover;
background-position: center center;
height: 470px;
left: 0px;
opacity: 0;
position: absolute;
top: 189px;
width: 100%;
background-color: rgba(0,0,0,.3);
background-blend-mode: darken;
z-index: 0;
}
The only solution that worked for me was:
height: calc(100vh - 189px);
The 189px accounts for the space taken up by my header menu. Is there any way to achieve this without using calc? Hoping for a resolution, Thank you.