I can't figure out how to set the hight of a div to 100% of it's parents viewport.
The goal is to have a scrollable div with an other div ("welcome-screen") + text inside. "Welcome-screen" should fill the complete viewport, so that you see the text below only after you scrolled. Inside "welcome-screen" should be a centered logo.
I tried so many things but couldn't find a solution which works given the additional divs Joomla generates.
I generated a JSFiddle to illustrate the Problem: https://jsfiddle.net/z8xy6ttL/
#outer {
height: 300px;
width: 400px;
overflow: auto;
}
.welcome-screen {
background-color: darkred;
height: 100%;
position: relative;
}
.article-wrap {
height: 100%;
min-height: 100%;
background-color: aquamarine;
overflow: auto;
}
article {
padding: 30px;
text-align: left;
display: table-cell;
}
That's what I try to archive but dynamically: https://jsfiddle.net/hausmaster/z8xy6ttL/3/
Would appreciate your help. Thanks!