Я пытаюсь создать базовый пользовательский интерфейс, используя flexbox, у меня это пока что есть.
body,html {
margin:0;
padding:0;
height:100%;
}
.container {
height:100%;
display:flex;
flex-direction:column;
}
.top {
flex:4;
display:flex;
background:wheat;
align-items: center;
justify-content: center;
}
.bottom {
flex:1;
background:teal;
}
.bottom_content {
display:flex;
flex-direction:column;
}
.section1 {
flex:1;
font-size:20px;
text-align:center;
}
.section2 {
flex:1;
}
.btn {
background:red;
color:white;
padding:20px;
}
<div class="container">
<div class="top">
<span>TOP CONTENT</span>
</div>
<div class="bottom">
<div class="bottom_content">
<div class="section1">
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacus quam, blandit non lacus in, venenatis tempor dolor. Aliquam in lectus lacus. </span>
</div>
<div class="section2">
<div class="btn">
THIS IS A BUTTON
</div>
</div>
</div>
</div>
</div>
Я пытаюсь добиться этого ...
![enter image description here](https://i.stack.imgur.com/EHiMp.jpg)
Как можноЯ делаю нижнюю секцию равной высоты и выравниваю содержимое в ней по вертикали и горизонтали?
Я также планирую использовать fittext.js или аналогичный, чтобы кнопка и текст выше помещались в элемент flex.
Куда я иду не так?