JSFiddle - React, Tailwind, and code Playground
by aslancods
HTML
<div class="contentarea">
Hi, i am content area :-D ,
i'll be always standing above footer.
</div>
<div class="footer">
Hi, i am Stricky Footer :).
i always remain at bottom of page.
</div>
CSS
html, body {
height: 100%;
margin: 0;
}
.contentarea {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
min-height: 100%;
padding-bottom: 80px; /* equal to footer height */
background-color: #ececec;
color: #444;
text-align: center;
}
.footer {
height: 80px;
margin-top: -80px; /* equal to footer height */
background-color: #444;
text-align: center;
color: #fff;
}