table not formatting correctly


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: table not formatting correctly

  1. #1
    Brian Guest

    table not formatting correctly

    I can not seem to get my table to format correctly and no matter how much I
    look at it I can't find an error in my coding. There should be 7 columns in
    the table. The first 6 are all 50 pixels wide, and the last should be the
    remaining width of the page. The first 4 columns are working correctly, but
    5 & 6 are coming out too wide for some reason. The code is below and I hope
    someone can tell me what I'm doing wrong. The border is on so it's easier
    to troubleshoot.

    Thanks in advance.

    <table width="100%" border="1" cellspacing="0">
    <tr>
    <td width="50" align="center" valign="top">______</td>
    <td width="50" align="center" valign="top">______</td>
    <td width="50" align="center" valign="top">______</td>
    <td colspan="4">TARIFF MAPPING/APPROVAL</td>
    </tr>
    <tr>
    <td width="50" align="center" valign="top">______</td>
    <td width="50" align="center" valign="top">______</td>
    <td width="50" align="center" valign="top">______</td>
    <td width="50">&nbsp;</td>
    <td colspan="3">Pull old Tariff pages from Teleview for reference</td>
    </tr>
    <tr>
    <td width="50" align="center" valign="top">______</td>
    <td width="50" align="center" valign="top">______</td>
    <td width="50" align="center" valign="top">______</td>
    <td width="50">&nbsp;</td>
    <td width="50">&nbsp;</td>
    <td colspan="2" align="left">O:\audit\entry.xls</td>
    </tr>
    <tr>
    <td width="50" align="center" valign="top">______</td>
    <td width="50" align="center" valign="top">______</td>
    <td width="50" align="center" valign="top">______</td>
    <td width="50">&nbsp;</td>
    <td width="50">&nbsp;</td>
    <td width="50">&nbsp;</td>
    <td>Date: ________</td>
    </tr>



  2. #2
    Douglas J. Steele Guest

    Re: table not formatting correctly

    What problem are you encountering? If you don't specify the table width, it
    won't take the rest of the available space: it will take what it thinks it
    needs. See whether

    <td WIDTH="*">Date: ________</td>

    improves the situation

    --

    Doug Steele, Microsoft Access MVP
    Beer, Wine and Database Programming. What could be better?
    Visit "Doug Steele's Beer and Programming Emporium"
    http://I.Am/DougSteele/


    Brian <brian.martens@wcom.com> wrote in message
    news:3912cf17$1@news.devx.com...
    > I can not seem to get my table to format correctly and no matter how much

    I
    > look at it I can't find an error in my coding. There should be 7 columns

    in
    > the table. The first 6 are all 50 pixels wide, and the last should be the
    > remaining width of the page. The first 4 columns are working correctly,

    but
    > 5 & 6 are coming out too wide for some reason. The code is below and I

    hope
    > someone can tell me what I'm doing wrong. The border is on so it's easier
    > to troubleshoot.
    >
    > Thanks in advance.
    >
    > <table width="100%" border="1" cellspacing="0">
    > <tr>
    > <td width="50" align="center" valign="top">______</td>
    > <td width="50" align="center" valign="top">______</td>
    > <td width="50" align="center" valign="top">______</td>
    > <td colspan="4">TARIFF MAPPING/APPROVAL</td>
    > </tr>
    > <tr>
    > <td width="50" align="center" valign="top">______</td>
    > <td width="50" align="center" valign="top">______</td>
    > <td width="50" align="center" valign="top">______</td>
    > <td width="50">&nbsp;</td>
    > <td colspan="3">Pull old Tariff pages from Teleview for reference</td>
    > </tr>
    > <tr>
    > <td width="50" align="center" valign="top">______</td>
    > <td width="50" align="center" valign="top">______</td>
    > <td width="50" align="center" valign="top">______</td>
    > <td width="50">&nbsp;</td>
    > <td width="50">&nbsp;</td>
    > <td colspan="2" align="left">O:\audit\entry.xls</td>
    > </tr>
    > <tr>
    > <td width="50" align="center" valign="top">______</td>
    > <td width="50" align="center" valign="top">______</td>
    > <td width="50" align="center" valign="top">______</td>
    > <td width="50">&nbsp;</td>
    > <td width="50">&nbsp;</td>
    > <td width="50">&nbsp;</td>
    > <td>Date: ________</td>
    > </tr>
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center