JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
</head>
<body>
<div class="bottom">
</div>
<div class="stretchedMargin">
Hello, world
<div id="footer">
Hellow
</div>
</div>
<hr>
</body>
</html>
CSS
body {
background: orange;
}
.stretchedMargin {
display: block;
position:absolute;
height:auto;
width: 150px;
bottom:0;
top:0;
left:0;
right:0;
margin-top:20px;
margin-bottom:64px;
margin-right:auto;
margin-left:auto;
background-color: green;
}
#footer {
position: absolute;
bottom: -64px;
background: red;
height: 54px;
width: 100%;
}
.bottom {
position: absolute;
bottom: 0;
background: blue;
height: 54px;
width: 100%;
}