Looking for a solution to create a container that takes up the full window height and width? Inside this container, I want to have a form that is centered both vertically and horizontally. Additionally, I want some text at the bottom baseline of the container. I'm currently struggling to achieve this layout as the vertical centering works but I can't figure out how to pin the bottom text to the bottom of the container.
---------
| |
| |
|<form> |
| |
|<copy> |
---------
.container {
background-color: #eee;
height: 100vh;
width: 100vw;
padding: 1em;
display: flex;
text-align: center;
justify-content: center;
flex-direction: column;
}
form {
}
.bot {
align-self: flex-end;
}
<div class="container">
<form>
<input type="text" />
<button type="submit">submit</button>
</form>
<p class="bot">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Omnis quae quisquam neque cupiditate adipisci magnam facilis, distinctio suscipit possimus hic voluptatibus in illo est id alias unde sapiente ab eius.</p>
</div>