Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   border(grid line) now showing up (http://www.velocityreviews.com/forums/t793299-border-grid-line-now-showing-up.html)

eddie wang 02-11-2004 10:49 PM

border(grid line) now showing up
 
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.fiel ds("sold_amount")),2)%
></td>

</tr>
<%ars.MoveNext
loop%>
</table>

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Ray at 02-11-2004 10:56 PM

Re: border(grid line) now showing up
 

"eddie wang" <ewang@kmg.com> wrote in message
news:OOw1NFP8DHA.696@tk2msftngp13.phx.gbl...
> The following html doesn't show up cell borders(grid line). Why?
> Thanks.
>

Not sure. I'd try asking in a group that is more focused on CSS as opposed
to server-side programming, perhaps:

comp.infosystems.www.authoring.stylesheets

Ray at work



Roland Hall 02-12-2004 10:32 AM

Re: border(grid line) now showing up
 
"eddie wang" wrote:
: 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.fiel ds("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





All times are GMT. The time now is 10:06 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57