Flex test
by Richard Houltz
HTML
<div class="page">
<div class="container">
<div class="header">
</div>
<div class="content">
</div>
<div class="footer">
</div>
</div>
</div>
CSS
.page{
position: relative;
}
.container {
position: absolute;
top: 50px;
display: flex;
flex-flow: column;
background-color: green;
height: 400px;
width: 100%;
}
.header {
background-color: red;
height: 50px;
flex: 0 1 auto;
}
.content {
background-color: yellow;
flex: 1 1 auto;
}
.footer {
background-color: blue;
height: 40px;
flex: 0 1 auto;
}