I am trying to have only div3 and nothing else on the flex-end of .app.
If I use the following code:
.app {
display: flex;
flex-direction: column;
height: 100vh;
justify-content: flex-end;
}
I get div3 where I want it but everything else also follows it down to the bottom of the screen.
So I tried this, which did not work:
.app {
display: flex;
flex-direction: column;
height: 100vh;
}
.app > .div3 {
justify-content: flex-end;
}
.app {
display: flex;
flex-direction: column;
height: 100vh;
}
.app>.div3 {
justify-content: flex-end;
}
<div class="app">
<div class="div1">
<h1>Hello</h1>
<div class="div2">
<h1>Hello</h1>
<div class="div3">
<h1>Hello</h1>
<input type="input" class="input">
</div>
</div>
</div>
</div>