Hi

Following is my table format for which I am using Div tag (overflow condition)

<script>
if(screen.width==1024)
document.writeln("<div style='position:absolute; top:150; left:155; width:620; height:438; z-index:1; visibility:visible;overflow:auto'>");
else
document.writeln("<div style='position:absolute; top:150; left:155; width:620; height:270; z-index:1; visibility:visible;overflow:auto'>");
</script>
<table width="160%" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="25%" align="left" bgcolor="#dadada"><font class="shnText"><b>Customer Name</b></font></td>
<td width="10%" align="center" bgcolor="#dadada"><font class="shnText"><b>Jan</b></font></td>
<td width="10%" align="center" bgcolor="#dadada"><font class="shnText"><b>Feb</b></font></td>
<td width="10%" align="center" bgcolor="#dadada"><font class="shnText"><b>Mar</b></font></td>
<td width="10%" align="center" bgcolor="#dadada"><font class="shnText"><b>Apr</b></font></td>
<td width="10%" align="center" bgcolor="#dadada"><font class="shnText"><b>May</b></font></td>
<td width="10%" align="center" bgcolor="#dadada"><font class="shnText"><b>Jun</b></font></td>
<td width="10%" align="center" bgcolor="#dadada"><font class="shnText"><b>Jly</b></font></td>
<td width="10%" align="center" bgcolor="#dadada"><font class="shnText"><b>Aug</b></font></td>
<td width="10%" align="center" bgcolor="#dadada"><font class="shnText"><b>Sep</b></font></td>
<td width="10%" align="center" bgcolor="#dadada"><font class="shnText"><b>Oct</b></font></td>
<td width="10%" align="center" bgcolor="#dadada"><font class="shnText"><b>Nov</b></font></td>
<td width="10%" align="center" bgcolor="#dadada"><font class="shnText"><b>Dec</b></font></td>
<td width="15%" align="center" bgcolor="#dadada"><font class="shnText"><b>TOTAL</b></font></td>
</tr>
<%
If rsCustomers.RecordCount > 0 Then
While Not rsCustomers.Eof
%>
<tr>
<td width="25%" align="left"><font class="shnText"><%=rsCustomers("user_nm")%></font></td>
<%
For i = 1 To 12
lMonthTotal = objBilling.GetTotalCollectedFromUser(CStr(i), CStr(Year(Now)), rsCustomers("user_id"))
lCustomerTotal = lCustomerTotal + lMonthTotal
lTotals(i) = lTotals(i) + lMonthTotal
%>
<td width="10%" align="right"><font class="shnTextVerySmall"><%=objUtils.FormatString(CStr(lMonthTotal), "##,##0.00")%></font></td>
<%
Next
%>
<td width="15%" align="right"><font class="shnTextVerySmall"><b><%=objUtils.FormatString(CStr(lCustomerTotal), "#,##,##0.00")%></b></font></td>
</tr>
<%
rsCustomers.MoveNext
lCustomerTotal = 0
Wend
Else
%>
<tr>
<td width="160%" align="left" colspan="14"><font class="shnText">No customers exists</font></td>
</tr>
<%
End if
%>

<tr>
<td width="25%" align="right"><font class="shnText"><b>TOTAL</b></font></td>
<%
For i = 1 To 12
lGrandTotal = lGrandTotal + lTotals(i)
%>
<td width="10%" align="right"><font class="shnTextVerySmall"><b><%=objUtils.FormatString(CStr(lTotals(i)), "##,##,##0.00")%></b></font></td>
<%
Next
%>
<td width="15%" align="right"><font class="shnTextVerySmall"><b><%=objUtils.FormatString(CStr(lGrandTotal), "##,##,##0.00")%></b></font></td>
</tr>
</table>
</div>

Where in I am displaying user_names in first column of the table, under each month respective deposits made by that perticular user & finallly in the last column total deposits made till the current month.


Since I have given Div tag to the whole table, when I scroll to the right customer names will be hidden only deposit details are displayed. hence I am just planning to display customer names as it is & scroll only deposit details & total deposit, which make us easy to read deposit details for any customer.
since deposit details & total deposit are columns in the table I am finding it difficult to apply div tag seperately.

Please help

shara