JSFiddle - React, Tailwind, and code Playground
by Craig Wadman
HTML
<div class="wrapper">
<div class="before">class-before</div>
<div class="class-1">class-1</div>
<div class="class-2">class-2</div>
<div class="after">class-after</div>
</div>
CSS
@charset "UTF-8";
/* CSS Document */
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html, body {
height:100%;
margin: 0;
}
div.wrapper {
background-color:#0FF;
width: 100%;
height: 100%;
}
/* Testing Divs */
div.before {
background-color:#0C9;
width: 500px;
}
div.after {
background-color:#0C9;
width: 500px;
}
div.class-1 {
position:relative;
background-color:#CCC;
width: 500px;
height: 200px;
}
div.class-2 {
position:absolute;
background-color:#C96;
width: 250px;
height: 100px;
top:0px;
right:0px;
}
/* Testing Divs End */
.font-main {
color: #000;
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
}