border(grid line) now showing up

Discussion in 'ASP General' started by eddie wang, Feb 11, 2004.

  1. eddie wang

    eddie wang Guest

    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>

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    eddie wang, Feb 11, 2004
    #1
    1. Advertising

  2. eddie wang

    Ray at Guest

    "eddie wang" <> wrote in message
    news:...
    > 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
     
    Ray at, Feb 11, 2004
    #2
    1. Advertising

  3. eddie wang

    Roland Hall Guest

    "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.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
     
    Roland Hall, Feb 12, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tshad
    Replies:
    0
    Views:
    2,277
    tshad
    Jan 31, 2005
  2. phl
    Replies:
    1
    Views:
    4,376
    Martin Jay
    Jun 8, 2006
  3. Coder
    Replies:
    1
    Views:
    712
    Cowboy \(Gregory A. Beamer\)
    Jun 24, 2006
  4. =?UTF-8?B?TWFydGluIFDDtnBwaW5n?=

    border-color: #003366; border-width: 2px;

    =?UTF-8?B?TWFydGluIFDDtnBwaW5n?=, Jul 17, 2006, in forum: HTML
    Replies:
    64
    Views:
    3,563
    Adrienne Boswell
    Jul 30, 2006
  5. simon
    Replies:
    1
    Views:
    423
    Munna
    Jun 19, 2008
Loading...

Share This Page