JSFiddle - React, Tailwind, and code Playground

by m_raffaele

HTML

<div class="post post-image">
    <img src="http://placehold.it/200x200/" />
    <div class="info">
        <h1>Lorem ipsum dolor</h1>
        <p>Chocolate Rain, Some stay dry and others feel the pain, Chocolate Rain[...]</p>
    </div>
</div>
<div class="post">
    <div class="info">
        <h1>Lorem ipsum dolor</h1>
        <p>Chocolate Rain, Some stay dry and others feel the pain, Chocolate Rain, A baby born will die before the sin,</p>
        <p>Chocolate Rain, The school books say it can't be here again.</p>
    </div>
</div>

CSS

body {
    background: #eaeaea;
    font-family:Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
}
.post {
    float: left;
    box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
    background:#fff;
    overflow: hidden;
    width: 200px;    
    height: 420px;
}
.post-image {

}
img {
    -webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box; 
    border: 1px solid #fff;
    float: left;
    height: 200px;
    vertical-align: bottom;
    width: 200px;
}
.info {
    box-sizing:border-box;
    float: left;
    padding: 25px;
    width: 200px;
}
h1 {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
    
    font-weight: 400;
    text-transform: uppercase;
    display: inline;
    background: yellow;
}
p {
    margin: 10px 0;
}