border(grid line) now showing up

E

eddie wang

The following html doesn't show up cell borders(grid line). Why?
Thanks.


<table width="97%" height="81" border="1" bordercolor=royalblue
cellpadding="0" cellspacing="0">

<tr><td align=center>
<%If not ars.EOF and not ars.BOF then%>
<table cellpadding="0" cellspacing="0" border="0" width="100%"
align=center>
<tr><td width="20%" align="center"><font
class=content2><B>line_item_nm</B></Font></td>
<td width="10%" align="center"><font class=content2><B>Total
Onshore</B></td>
<td width="8%" align="center"><font class=content2><B>Hedge
Impace</B></td>
<td width="8%" align="center"><font class=content2><B>Core
Gas</B></td>
<td width="8%" align="center"><font class=content2><B>Non-Core
Gas</B></td>
<td width="8%" align="center">
<p align="center"><font class=content2><B>Oil</B></td>
<td width="8%" align="center"><font
class=content2><B>Region</B></td>
<td width="8%" align="center"><font
class=content2><B>Royalty</B></td>
<td width="8%" align="center"><font
class=content2><B>Sold</B></td>

</tr>
<TR><TD colspan=9><HR size=2 color=darkblue></TD></TR>
<%bgcolor = ""
do while not ars.EOF

if ars.Fields("line_item_nm")= "$/BBL" then
bgcolor = "Linen"
else
bgcolor=""
end if

%>
<tr bgcolor="<%=bgcolor%>" height=17>
<td align="left" bgcolor="#FFFF99"><Font
class=content4><%=replace(ars.Fields("line_item_nm"), "
","&nbsp;&nbsp;&nbsp;")%></font></td>
<td align="right" bgcolor="#FFFF99"><Font
class=content4><%=ars.Fields("TOTAL_ONSHORE_AMOUNT")%></td>
<td align="right"><Font
class=content4><%=ars.Fields("HEDGE_AMOUNT")%></td>
<td align="right"><Font
class=content4><%=ars.Fields("CORE_GAS_AMOUNT")%></td>
<td align="right"><Font
class=content4><%=ars.Fields("NON_CORE_GAS_AMOUNT")%></td>
<td align="right"><Font
class=content4><%=ars.Fields("Oil_AMOUNT")%></td>
<td align="right"><Font
class=content4><%=ars.Fields("REGION_AMOUNT")%></td>
<td align="right"><Font
class=content4><%=ars.Fields("ROYALTY_AMOUNT")%></td>
</tr>
<%ars.MoveNext
loop%>
</table>
 
R

Roland Hall

:
: The following html doesn't show up cell borders(grid line). Why?
: Thanks.
:
:
: <table width="97%" height="81" border="1" bordercolor=royalblue
: cellpadding="0" cellspacing="0">
:
: <tr><td align=center>
: <%If not ars.EOF and not ars.BOF then%>
: <table cellpadding="0" cellspacing="0" border="0" width="100%"
: align=center>
: <tr><td width="20%" align="center"><font
: class=content2><B>line_item_nm</B></Font></td>
: <td width="10%" align="center"><font class=content2><B>Total
: Onshore</B></td>
: <td width="8%" align="center"><font class=content2><B>Hedge
: Impace</B></td>
: <td width="8%" align="center"><font class=content2><B>Core
: Gas</B></td>
: <td width="8%" align="center"><font class=content2><B>Non-Core
: Gas</B></td>
: <td width="8%" align="center">
: <p align="center"><font class=content2><B>Oil</B></td>
: <td width="8%" align="center"><font
: class=content2><B>Region</B></td>
: <td width="8%" align="center"><font
: class=content2><B>Royalty</B></td>
: <td width="8%" align="center"><font
: class=content2><B>Sold</B></td>
:
: </tr>
: <TR><TD colspan=9><HR size=2 color=darkblue></TD></TR>
: <%bgcolor = ""
: do while not ars.EOF
:
: if ars.Fields("line_item_nm")= "$/BBL" then
: bgcolor = "Linen"
: else
: bgcolor=""
: end if
:
: %>
: <tr bgcolor="<%=bgcolor%>" height=17>
: <td align="left" bgcolor="#FFFF99"><Font
: class=content4><%=replace(ars.Fields("line_item_nm"), "
: ","&nbsp;&nbsp;&nbsp;")%></font></td>
: <td align="right" bgcolor="#FFFF99"><Font
: class=content4><%=ars.Fields("TOTAL_ONSHORE_AMOUNT")%></td>
: <td align="right"><Font
: class=content4><%=ars.Fields("HEDGE_AMOUNT")%></td>
: <td align="right"><Font
: class=content4><%=ars.Fields("CORE_GAS_AMOUNT")%></td>
: <td align="right"><Font
: class=content4><%=ars.Fields("NON_CORE_GAS_AMOUNT")%></td>
: <td align="right"><Font
: class=content4><%=ars.Fields("Oil_AMOUNT")%></td>
: <td align="right"><Font
: class=content4><%=ars.Fields("REGION_AMOUNT")%></td>
: <td align="right"><Font
: class=content4><%=ars.Fields("ROYALTY_AMOUNT")%></td>
: <td align="right"><Font
: class=content4><%=formatnumber(nulltozero(ars.fields("sold_amount")),2)%
: ></td>
: </tr>
: <%ars.MoveNext
: loop%>
: </table>

The outer table is not closed and it is the only one with the border on.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top