JSFiddle - React, Tailwind, and code Playground
by bgrins
HTML
<script src="https://raw.github.com/bgrins/loremjs/master/lorem.js"></script>
<div class="banner">
<h3>Banner Heading</h3>
<div class="banner-content">
<div class="banner-thumb">
<img src='http://placehold.it/350x150' />
</div>
<div class="banner-description" data-lorem='1'>
</div>
<div class='banner-footer'>
</div>
<br class='clear' />
</div>
</div>
CSS
.banner {
width: 98%;
margin: 0 auto;
}
.banner h3 {
padding: 15px 5px;
margin: 10px auto;
margin-top: 40px;
border: solid 3px #AAA;
position:relative;
font-size: 20px;
font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
text-align: center;
background: -webkit-linear-gradient(top, #efefef, #dfdfdf);
border-radius: 3px;
}
.banner h3:after {
content: '';
position: absolute;
box-shadow: 0 5px 9px #000;
left: 0;
bottom: 0;
right: 0;
height: 5px;
z-index: -1;
}
.banner-content {
position: relative;
background: #EDEDED;
border: solid 2px #AAA;
border-top: none;
padding: 30px 12px;
margin: 0 12px;
margin-top: -12px;
border-radius: 0 0 5px 5px;
font-size: 20px;
font-family: Georgia serif;
}
.banner-content:before {
content: '';
position:absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
background-image: -webkit-linear-gradient(rgba(0, 0, 0, .2) 50%, transparent 50%, transparent);
-webkit-background-size: 10px 10px;
z-index: -1;
}
.banner-description {
}
.banner-thumb {
float:right;
}
.banner-thumb img {
padding-left: 20px;
padding-bottom: 20px;
}
.banner-footer {
clear:both;
}