JSFiddle - React, Tailwind, and code Playground
by timkl
HTML
<div class="box">
<div class="topleft">
<div class="topright">
<div>
<h1>Test</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</div>
</div>
<div class="bottomleft">
<div class="bottomright"> </div>
</div>
</div>
CSS
body {
font-size: 62.5%;
font-family: Helvetica, sans-serif;
}
h1 {
font-size: 20px;
margin-bottom: 12px;
}
p {
font-size: 12px;
line-height: 18px;
margin-bottom: 14px;
}
.box {
width: 300px;
margin: 50px auto;
}
.box div {
margin: 5px 0 0 -25px;
}
.box div.topleft {
display: block;
background: url("http://www.webdesignerwall.com/demo/expandable-box/images/box-bg.png") top left no-repeat white;
padding: 20px 0em 0em 20px;
}
.box div.topright {
display: block;
background: url("http://www.webdesignerwall.com/demo/expandable-box/images/box-bg.png") top right no-repeat white;
padding: 20px;
margin: -20px 0 0 20px;
}
.box div.bottomleft {
display: block;
height: 45px;
margin-top: -2.0em;
background: url("http://www.webdesignerwall.com/demo/expandable-box/images/box-bg.png") bottom left no-repeat white;
}
.box div.bottomright {
display: block;
background: url("http://www.webdesignerwall.com/demo/expandable-box/images/box-bg.png") bottom right no-repeat white;
height: 45px;
margin-left: 3.0em;
}