JSFiddle - React, Tailwind, and code Playground
by Karla Jaramillo
HTML
<body>
<header>
<code><header></code>
</header>
<div class="group">
<code class="default"><section="group"></code>
<section class="grid">
<!--Section 1 -->
<section class="col-1-3">
<code><Section 1> <br> inline-block;</code>
</section><!--
Section 2
--><section class="col-1-3">
<code><Section 2> <br> inline-block;</code>
</section><!--
Section 3
--><section class="col-1-3">
<code class=" color-section" id="color-section-id"><Section 3> <br> inline-block;</code>
</section>
</section>
</div>
<footer>
<code><footer></code>
</footer>
</body>
CSS
*,
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
code {
background: #F64747;
border-radius: 4px;
color: #fff;
display: block;
font: 14px/24px "Source Code Pro", Inconsolata, "Lucida Console",Terminal, "Courier New", Courier;
padding: 24px 15px;
text-align: center;
}
.group,
header,
aside,
footer{
margin: 0 1.5% 24px 1.5%;
}
footer{
margin-bottom: 0;
}
/*
=====================================
Containing floats
=====================================
*/
.default{
background: none;
color: #666;
}
.grid{
margin: 0 auto 30px auto;
}
.grid,
.col-1-3{
padding-left: 15px;
padding-right: 15px;
}
.col-1-3{
display: inline-block;
width: 33.33%;
}
.group:before,
.group:after{
content: "";
display: table;
}
.group:after{
clear: both;
}
.group{
background: #eaeaed;
clear: both;
*zoom:1;
}
#color-section-id{
background: #1BBC9B;
}
.color-section{
background:#D24D57;
}