JSFiddle - React, Tailwind, and code Playground
by sandeepkundu
HTML
<div class="main">
<header>
<h1>Header</h1>
</header>
<article>
<h1>Article</h1>
</article>
<aside>
<h1>Aside</h1>
</aside>
<footer>
<h1>Footer</h1>
</footer>
</div>
CSS
body{
background:#fff;
}
*{
margin:0;
padding:0;
}
.main{
width:500px;
margin:0 auto;
}
a{
text-decoration:none;
color:#2D82C3;
}
a:hover{
text-decoration:underline;
}
h1{
font:oblique 22px Georgia, "Times New Roman", Times, serif;
}
p{
font:oblique 14px/19px Arial, Helvetica, sans-serif;
padding:5px 0 0;
}
article, aside, header, footer{
border:1px solid #b6b6b6;
padding:15px;
margin-top:15px;
-webkit-border-radius: 10px;
-khtml-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
article{
width:290px;
float:left;
min-height:100px;
}
aside{
width:110px;
float:right;
min-height:100px;
}
header{
width:470px;
float:right;
background: #eee;
background: -moz-linear-gradient(top, #fff, #efeded);
background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#efeded));
-pie-background: linear-gradient(top, #fff, #efeded);
-moz-box-shadow: 0 0 2px 2px #cacaca;
-webkit-box-shadow: 0 0 2px 2px #cacaca;
box-shadow: 0 0 2px 2px #cacaca;
}
footer{
width:470px;
float:right;
}