JSFiddle - React, Tailwind, and code Playground
by Alex
HTML
<div class="box">
<div class="box-inner"></div>
</div>
CSS
html {
min-height: 100%;
font-family: sans-serif;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
}
body {
margin: 0;
padding: 15px 0;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
-webkit-flex: auto;
flex: auto;
}
.box {
background: #eee;
margin: auto;
padding: 10px;
-webkit-flex: none;
flex: none;
position: relative;
border-radius: 3px;
box-shadow: 0 0 10px rgba(0,0,0,.5);
}
.box-inner {
background: #0076A3;
width: 600px;
height: 350px;
}