JSFiddle - React, Tailwind, and code Playground

by LinkinTED

HTML

<div class="infoBox">
    <p>
        <img src="http://cs421319.vk.me/v421319968/b0e1/ljfuXCyMOFI.jpg" />
        _Dark_<br />
        <span>01.01.2014 — 23:59 </span>
    </p>
    <h1>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse sollicitudin, est non tempus lacinia, urna. </h1>
</div>

CSS

.infoBox {
    min-height: 60px;
    background: #eee;
    padding: 5px;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: table; /* display the box as table */
    width: 100%;
}
.infoBox > p, /* selects all p that are direct child of .infoBox */
.infoBox > h1 {
    display: table-cell; /* display the p and h1 as a table cell */
}
.infoBox > p {
    width: 200px;
    margin: 0;
    padding: 0;
    font-size: 20px;
    font-weight: bold;
}
.infoBox > p img {
    width: 50px;
    height: 50px;
    margin-right: 5px;
    float: left;
}
.infoBox > p span {
    font-size: 12px;
    font-weight: normal;
}
.infoBox > h1 { /* select h1 that is a direct child of .infoBox */
    font-size: 14px;
    margin: 0;
    padding: 0;
}