I’m using the css below to set the height of the div with a class of “.intro”. It works fine for me:
…
* {
box-sizing: border-box;
}
body {
margin: 0;
font-weight: 500;
font-family: ‘HelveticaNeue’;
}
section {
width: 100%;
padding: 0 7%;
display: table;
margin: 0;
max-width: none;
background-color: #373B44;
height: 100vh;
&:nth-of-type(2n) {
background-color: #FE4B74;
}
}
.intro {
height: 90vh;
}
.content {
display: table-cell;
vertical-align: middle;
}
…
However, i’d like to make the background image of the div to adjust to the viewport height. Any guidance appreciated. Thanksl