JSFiddle - React, Tailwind, and code Playground
by Axelvaisper
HTML
<body class="flex-parent">
<div class="flex-inner">
<div class=container>sdgsdfgsdfg</div>
<div class="name">dfghsdgdsfgdsfg</div>
</div>
<footer>xfxfdsdf</footer>
</body>
CSS
html {
height:100%
}
.flex-parent {
margin:0;
padding:0;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-justify-content: flex-end;
-ms-flex-pack: end;
justify-content: flex-end;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-align-items: stretch;
-ms-flex-align: stretch;
align-items: stretch;
height:100%;
}
.flex-inner {
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
-webkit-align-self: auto;
-ms-flex-item-align: auto;
align-self: auto;
}
footer {
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
-webkit-flex: 0 1 44px;
-ms-flex: 0 1 44px;
flex: 0 1 44px;
-webkit-align-self: stretch;
-ms-flex-item-align: stretch;
align-self: stretch;
}