Where did this extra column come from?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeddiki
    Contributor
    • Jan 2009
    • 290

    Where did this extra column come from?

    Hello,

    I have a fairly nice table, but it has an extra column
    and I can not seem to get rid of it :(



    This is my css for the table:

    Code:
    table.analyzer{
    width:600px; 
    font-size:14px;
    border: 2px solid #ccc;
    border-collapse:collapse;
    }
    
    table.analyzer td{
    border: 1px solid #ccc;
    padding:8px 8px;
    }
    And the HTML:

    Code:
    <table cellpadding="0" cellspacing="0" class="analyzer">
    <tr style="font-weight:bold; height:40px; background-color:#a9a9a9;"><td width="30px">Pos</td><td style="text-align:left; width:420px;">Product Description</td><td>Earn</td><td>Future</td><td>Comm</td><td>Gravity</td></tr>
    <?php 
    echo "<tr>
    <td>$Rctr</td>
    <td>$stuff <a href=\"$det_link\"> Detailed Info.</a></td>
    <td>$earn</td>
    <td>$rebill</td>
    <td>$comm</td>
    <td>$grav</td>
    </tr>
    <tr>
    <td>$Rctr</td>
    <td>$stuff <a href=\"$det_link\"> Detailed Info.</a></td>
    <td>$earn</td>
    <td>$rebill</td>
    <td>$comm</td>
    <td>$grav</td>
    </tr>
    
     // then a couple more rows, then this:
    
    <tr><td style=\"text-align:left; color:#cc3399;\" colspan=\"6\" ><b>
    *********************************************************************************
    <br><br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CB Analyser Tute by John Simmons: <a href=\"http://www.expert-world.com/im/John-Simmons-niche-affiliate-articles-clickbank-Super-Analyzer-no.1-R63.html\">The Best Use of CB Super Analyzer Tool</a>
    <br><br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Second Tutorial by John Simmons: &nbsp;&nbsp;&nbsp;<a href=\"http://www.expert-world.com/im/John-Simmons-niche-affiliate-tutorials-Using-CB-Super-Analyzer-Tute01-Q69.html\">Using CB Super Analyzer Tutorial 2</a>
    <br><br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Third Tutorial by John Simmons: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"http://www.expert-world.com/im/John-Simmons-niche-affiliate-tutorials-Using-CB-Super-Analyzer-Tute03-Q70.html\">Using CB Super Analyzer Tutorial 3</a>
    <br><br>
    *********************************************************************************
    </b><td><tr>
    ";
    ?>
    How do I get rid of this extra narrow column on the right hand side ?

    Thanks for any advice.


    .
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    hey is this your complete code?

    no i guess
    check btn 4-19
    the number of column you declared is not same

    in first <tr></tr> you added 5 <td>/<td>
    in second <tr></tr> you added 6 <td>/<td>
    if you dont want to add any extra column at the first row then try changing colspan in any <td> you need

    in line 23 <tr> started as well as <td> but no end of tr and td..

    check them there is also another <tr> started but i guess you gave incomplete code....

    regards,
    johny

    Comment

    Working...