ROWSPAN PROBLEM
hi..all,
i found a problem while i want to display a table with rowspan property. if i use rowspan, then the table's alignment gets collapsed. herewith i'm attaching a sample code.Please copy and paste the following code and test it in your browser, and help me out to recover from this problem.
in this, i want to display the first column as a merged one if the consequence data are same. so that i put rowspan=3 (for ex.) in the first td (that is commented in the following code) but i couldn't get the output what i expect. please replace the first <td> with commented <td> and see the output.
==========
<body font="Ms Sans Serif" Size=1>
<table border="1">
<tr><td>val1</td><td>val2</td><td>val3</td><td>sum</td></tr>
<%
for j=1 to 2
sum=0
for i=1 to 3
a=j
b=a+i
c=b+i
sum=sum+a+b+c
%>
<tr><td><%=a%></td><td><%=b%></td><td><%=c%></td><% if i=3 then %><td valign="center" align="center"><%=sum%></td><%else%><td valign="center" align="center"> </td><%end if%></tr>
<%
next
next
%>
</table>
</body>
=========
Please help me to solve this problem as quickly as possible.
Thanks in Advance.
Yours,
Saran
__________________
Best Regards,
Saran.
|