JSFiddle - React, Tailwind, and code Playground
by alexb
HTML
<div id="modro">
<div id="mcontainer"></div>
<div class="title">My test Site</div>
</div>
<div id="container">
<p>test</p>
</div>
<div id="footer">
test
</div>
CSS
body, html {
height:100%;
margin-left:0;
margin-right:0;
margin-top:0;
margin-bottom:0;
}
#container{
top:40px;
width:512px;
background-color:#FFD700;
padding-top:-10px;
margin-left:auto;
margin-right:auto;
}
#footer {
position:fixed;
background: #222;
color: #fff;
padding: 10px 20px;
bottom:0;
width: 100%;
box-sizing: border-box;
}
#modro
{
height: 40px;
width:100%;
background-color:#F8F8F8;
padding-bottom:0px;
}
#mcontainer
{
display: inline-block;
width:200px;
height:40px;
background-color:red;
position: absolute;
width: 100%;
}
.title{
font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size:40px;
display: inline-block;
position: relative;
}
p {
margin: 0;
}
}