Prior studies
by amitava82
HTML
<link rel="stylesheet" href="http://taitems.github.com/Aristo-jQuery-UI-Theme/css/Aristo/Aristo.css">
<table width="100%">
<tr>
<td>
<a href="#" class="ui-corner-all blk priorlnk"><span class="ui-icon ui-corner-all ui-icon ui-icon-triangle-1-s fll"></span>Prior</a>
<div class="priorDiv">
<ul class="priorUl">
<li><span class="fll">MR Spine 12/12/2010</span> <a href="" class="priorImg ui-icon ui-icon-image fll">Image</a> <a class="priorReport ui-icon ui-icon-document" href="">Report</a></li>
<li><span class="fll">MR Spine 12/12/2010</span> <a href="" class="priorImg ui-icon ui-icon-image fll">Image</a> <a class="priorReport ui-icon ui-icon-document" href="">Report</a></li>
<li><span class="fll">MR Spine 12/12/2010</span> <a href="" class="priorImg ui-icon ui-icon-image fll">Image</a> <a class="priorReport ui-icon ui-icon-document" href="">Report</a></li>
<li><span class="fll">MR Spine 12/12/2010</span> <a href="" class="priorImg ui-icon ui-icon-image fll">Image</a> <a class="priorReport ui-icon ui-icon-document" href="">Report</a></li>
<li><span class="fll">MR Spine 12/12/2010</span> <a href="" class="priorImg ui-icon ui-icon-image fll">Image</a> <a class="priorReport ui-icon ui-icon-document" href="">Report</a></li>
</ul>
</div>
</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table...
CSS
body
{
font-size: 75%;
font-family: arial;
color: #444;
line-height: 18px;
}
tr, td{
border: 1px solid #ddd;
}
td{
padding: 2px 3px 2px 3px;
}
.priorUl li{
border: 1px solid #DDD;
/*background: -webkit-linear-gradient(top, #F7F7F7 0%,#EFEFEF 100%);*/
padding: 2px 3px 2px 3px;
background-color: #FFF;
border-radius: 3px;
}
.priorlnk{
width: 50px;
border: 1px solid #DDD;
box-shadow: inset 0 1px 0 #fff;
background-color: #F1F1F1;
margin-bottom: -1px;
}
.on{
border-bottom: 1px solid transparent;
z-index: 10;
position: relative;
}
.priorImg {
margin-left: 3px;
margin-right: 3px;
}
.priorReport {
}
a{
color: black;
text-decoration: none;
line-height: 18px;
font-size: 12px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: normal;
}
ul, li{
list-style-type: none;
margin: 0;
padding: 0;
}
li{
margin-bottom: 4px;
}
.priorDiv{
border: 1px solid #DDD;
display: none;
position: absolute;
background-color: #f1f1f1;
border-radius: 0 3px 3px 3px;
box-shadow: 1px 2px 8px rgba(0, 0, 0, .2);
padding: 10px 10px 6px 10px;
z-index: 9;
}
.blk{
display: block;
}
.flr{
float: right;
}
.fll{
float: left;
}
.clearfix:after{
content: " ";
display: block
clear: both;
zoom: 1;
display: none;
}
JavaScript
$('.priorlnk').click(function(){
$(this).toggleClass('on').next('.priorDiv').toggle();
return false;
});