JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<div class="row-fluid">
<div class="span4"><a href="#">Registration</a></div>
<div class="span4"><a href="#">Upload Document</a></div>
<div class="span4"><a href="#">See Profile</a></div>
</div>
<div class="show-all" >Show All</div>
</div>
CSS
.show-all
{
height: auto;
width: 100px;
background: #98bf26;
padding: 4px;
text-align: center;
color: white;
font-family:Calibri;
font-weight:bold;
margin:.7em;
cursor:pointer;
}
.show-all:hover
{
background:#c10000;
}
.row-fluid [class*="span4"]
{
display: inline-block;
width: 32%;
height: 50px;
text-align: center;
background: #98bf26;
position: relative;
min-width: 200px;
margin: .3em;
}
.row-fluid [class*="span4"]:hover
{
background: #c10000;
}
.row-fluid [class*="span4"] a
{
font-size: 22px;
color: White;
font-family: Calibri;
line-height: 50px;
text-decoration: none;
}
JavaScript
$(function () {
var index = $('.span4:nth-child(2)').position().left;
var left = $('.span4:nth-child(2)').position().left;
var top = $('.span4:nth-child(2)').position().top;
$('.container .row-fluid .span4 ').click(function () {
$(this).show().siblings().fadeOut();
$(this).css('margin-left', left);
});
$('.show-all').click(function () {
$('.span4').css('margin', "auto");
$('.span4').fadeIn();
});
});