JSFiddle - React, Tailwind, and code Playground
by Juli
HTML
<aside>
<header>
<div class="user">
<div class="user-icon"></div>
</div>
<strong>@cssliveru</strong><br/>
<span>HTML, CSS & JS</span>
<div class="contacts">
<a href="#" class="email-icon"></a>
<a href="#" class="follow-button">
<span class="plus">+</span>
<span class="follow">Follow</span>
</a>
</div>
</header>
<div class="content">
<div class="photo">
<img src="http://stage.russiansitters.com/images/test/cat.png" alt="cat"/>
<a href="#" class="lupa"></a>
</div>
<article>
<div class="comment">
<span >cssliveru shared a photo:</span><br/>
<span>“Just gave our kitty a bath! lol!”</span>
<a href="#" class="share"></a>
</div>
<footer>
<span class="img-marker">Posted from </span>
<a href="#">California</a>
<span class="clock"> 1 hour ago</span>
<span class="amount-comments"> 85 comments</span>
</footer>
</article>
</div>
</aside>
CSS
body{
background: #f7f7f7;
font-family:Arial;
}
aside{
background:#fff;
display:block;
margin:120px auto;
height:195px;
width:515px;
border-radius:3px;
-moz-box-shadow: 0px 0px 5px 1px #cac8c8;
-webkit-box-shadow: 0px 0px 5px 1px #cac8c8;
box-shadow: 0px 0px 5px 1px #cac8c8;
filter: progid:DXImageTransform.Microsoft.Shadow(strength = 1, direction = 180, color = '#cac8c8');
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(strength = 1, Direction = 180, Color = '#cac8c8')";
}
header{
display:block;
position:relative;
padding:15px;
height:40px;
border-bottom:1px solid #e6e6e6;
-webkit-box-shadow:inset 0 -1px 1px #cac8c8;
-mos-box-shadow:inset 0 -1px 1px #cac8c8;
box-shadow:inset 0 -1px 1px #cac8c8;
}
.user{
float:left;
padding:10px 9px 10px 11px;
margin-right:15px;
width:20px;
border-radius:3px;
background: #c3c3c3;
background: -moz-linear-gradient(top, #c3c3c3 0%, #a0a0a0 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#c3c3c3), color-stop(100%,#a0a0a0));
background: -webkit-linear-gradient(top, #c3c3c3 0%,#a0a0a0 100%);
background: -o-linear-gradient(top, #c3c3c3 0%,#a0a0a0 100%);
background: -ms-linear-gradient(top, #c3c3c3 0%,#a0a0a0 100%);
background: linear-gradient(to bottom, #c3c3c3 0%,#a0a0a0 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c3c3c3', endColorstr='#a0a0a0',GradientType=0 );
-moz-box-shadow: inset 0px 0px 1px 1px #9b9b9b;
-webkit-box-shadow: inset 0px 0px 1px 1px #9b9b9b;
box-shadow: inset 0px 0px 1px 1px #9b9b9b;
}
.user-icon{
background-position: -13px -98px;
width: 18px;
height: 17px;
}
strong{
color:#262626;
}
header>span{
color:#7b7b7b;
font-size:14px;
font-style:italic;
}
.contacts{
float:right;
margin-top:-10px;
}
.email-icon{
display:block;
float:left;
width:20px;
...