Hi ,
I tried the below solutions.
It is not working in IE.
It is working in Mozilla only.
Is there any java script missing for IE.
Your comments are appreciated.
RE: static header and tbody style class
By: surya (surya_vus) - 2007-01-23 10:00
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>
-------------------------------------------------------------------------
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