JSFiddle - React, Tailwind, and code Playground
by dhavaljani
HTML
<div class="ad-unit">
<a href="#">
<table class="mini-ad-table" cellpadding="0">
<tbody>
<tr>
<td class="desktop-social">
<div class="logo-image">
<span>Sponsored</span>
<span><img src="http://placehold.it/60x60/" /></span>
</div>
<div class="social-links">
<ul>
<li>Facebook</li>
<li>Twitter</li>
<li>Youtube</li>
<li>Pinterest</li>
<li>Instagram</li>
</ul>
</div>
</td>
<td class="desktop-video">
<div class="video-item">
<div class="image-holder">
<img src="http://placehold.it/600x500/eee/444/" />
</div>
<div class="play-btn">
<img src="http://placehold.it/40x40/fff/ccc/" />
</div>
</div>
</td>
</tr>
<tr>
<td class="desktop-footer" colspan="2">
<div class="desktop-text">
<h3>
Is Your Credit Stopping You From Getting a Mortgage?
</h3>
<p>
Belkin's QODE Ultimate Keyboard Case for iPad Air http://www.belkin.com/us/p/P-F5L151 is made from extremely thin and light, aircraft-grade aluminum alloy for a premium feel and durable screen protection. Its well-spaced keys offer responsive, accurate typing. Magnets hold the iPad Air in a variety of comfortable viewing angles. The iPad Air Keyboard folds into the case for comfortable handheld tablet use.
</p>
</div>
<div class="desktop-cta">
Learn More
</div>
</td>
</tr>
</tbody>
</table>
</a>
</div>
CSS
body {
font-family: sans-serif;
}
.ad-unit a {
color: initial;
text-decoration: none
}
table.mini-ad-table {
border: 1px solid #ccc;
width: 80%;
max-width: 560px;
margin: 20px auto;
border-spacing: 0;
box-shadow: 0 0 7px #ccc;
}
td.desktop-social {
background: #333;
color: #f5f5f5;
text-align: center;
vertical-align: top;
padding: 10px 5px;
}
.social-links ul {
list-style-type: none;
padding: 0;
text-align: center;
}
.video-item {
position: relative;
}
.image-holder img {
width: 100%;
height: auto;
max-height: 100%;
}
.play-btn {
position: absolute;
top: 50%;
left: 50%;
}
.play-btn img{
margin-top: -20px;
margin-left: -20px;
}
td.desktop-footer {
background: #fff;
height: 120px;
vertical-align: top;
}
td.desktop-footer .desktop-text {
padding: 10px;
width: 70%;
display: inline-block;
float: left;
}
td.desktop-footer .desktop-text h3,
td.desktop-footer .desktop-text p {
margin-top: 0;
margin-bottom: 5px;
}
td.desktop-footer .desktop-cta {
background: red;
color: #fff;
border-radius: 4px;
display: inline-block;
width: 23%;
vertical-align: middle;
text-align: center;
height: 70px;
line-height: 70px;
margin: 10px;
float: right;
font-weight: bold;
}