JSFiddle - React, Tailwind, and code Playground
by secretgspot
HTML
<div id="warapper">
<div class="buymemo">
<h1>My super cool List 1</h1>
<ul>
<li>Item1-1</li>
<li>Item1-2</li>
<li>Item1-3</li>
<li>Item1-4</li>
<li>Item1-5</li>
</ul>
</div>
<div class='houselist'>
<h1>Another List 2</h1>
<ul>
<li>Item2-1</li>
<li>Item2-2</li>
<li>Item2-3</li>
<li>Item2-4</li>
<li>Item2-5</li>
</ul>
</div>
</div>
CSS
#warapper {
display: -webkit-box;
margin: 0 -6px;
width: 100%;
text-align: center;
border-radius: 10px;
}
#warapper div {
position: relative;
margin: 25px 2px 10px;
padding-top: 10px;
width: 50%;
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}
.buymemo {
background: #fff6b7;
}
.houselist {
background: #ffcce5;
}
div h1 {
display: inline;
marign: 0;
-webkit-margin-before: 0;
-webkit-margin-after: 0;
font-size: 15px;
text-align: center;
}
.buymemo h1:first-child,
.houselist h1:first-child{
position: absolute;
top: -17px;
left: 40%;
padding: 5px 10px;
background-color: rgba(175, 175, 175, 0.5);
-webkit-transform: rotate(3deg);
}
#warapper ul {
padding: 10px;
}
#warapper li {
margin: 5px 0;
padding: 5px;
background: -webkit-gradient(linear, left top, left bottom, from(#FFF), to(#EEE));
border: 1px solid #FFF;
border-radius: 10px;
-webkit-box-shadow: 0px 0px 2px rgba(000,000,000,0.3);
}