Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4118404
By: surya_vus
The following CSS (optimized the CSS provided by Randy) helped me to get the
static header with the display table.
Thanks a lot Randy.
CSS
-------------
table.staticheader {
text-decoration: none;
border: 1px solid #CCC;
width: 98%;
}
table.staticheader th {
padding: 3px 3px 3px 3px !important;
text-align:center;
}
table.staticheader td {
padding: 3px 3px 3px 3px !important;
}
table.staticheader thead tr {
position: relative;
height: 10px;
background-color: #D7E5F3;
}
table.staticheader tbody {
height:150px;
overflow-x:hidden;
overflow-y: auto;
overflow:scroll;
}
table.staticheader tbody tr {
height: auto;
white-space: nowrap;
}
table.staticheader tbody tr.odd {
background-color: #eee
}
table.staticheader tbody tr.tableRowEven,tr.even {
background-color: #ddd
}
table.staticheader tbody tr td:last-child {
padding-right: 20px;
}
table.staticheader tbody td {
padding: 2px 4px 2px 4px !important;
}
div.TableContainer {
height: 150px;
overflow-x:hidden;
overflow-y:auto;
}
JSP
---------
<table width="100%" border="0">
<tr>
<td>
<div class="TableContainer">
<display:table cellpadding="5"
cellspacing="1" name="myList"
class="staticheader">
<display:setProperty
name="basic.empty.showtable" value="true" />
<display:column property="id"
title="ID" />
<display:column property="type"
title="type" />
<display:column property="name"
title="Name" />
<display:column
property="dueDate" title="Due date" />
<display:column
property="details" title="Details"
style="text-align:center"/>
</display:table>
</div>
</td>
</tr>
</table>
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=249318
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user