How would you do this? (HTML Table help)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Will Wood
    Evil Monkey
    • May 2002
    • 3475

    #1

    How would you do this? (HTML Table help)

    <table border=1>
    <tr>
    <td width=200>.</td>
    <td width=200>.</td>
    <td width=100%>.</td>
    </tr>
    </table>

    EDIT
    Code:
    <table border=1>
    <tr>
    <td width=200>.</td>
    <td width=200>.</td>
    <td width=100%>.</td>
    </tr>
    </table>
    Since when the hell is HTML enabled? blah!  Just view source.
    Ok this is the basic setup.
    The first two cels need to always be 200 pixels.
    However, the third needs to always take up the remainder of the space. But it crushes any whitepace left in the first two cells like this. How would I do it so it doesn't do that?
    Thanks
    Last edited by Will Wood; 12-07-2004, 05:48 PM.
  • gimp
    Registered User
    • Jan 2001
    • 2368

    #2
    Like this?

    Comment

    • Kevmaster
      Owners Group Div: Director
      • Oct 2001
      • 5475

      #3
      put an extra row in the table at the top (or bottom). make a 1px by 200px CLEAR gif. put that GIF in both of the two cols that need to be 200px wide. It won't chop off the extra whitespace after that.
      PHP Code:
      <table>
      <tr>
      <!--THIS IS THE IMAGE ROW-->
      <td> <img src = "clear.gif" width = "200" height = "1" > </td>
      <td> <img src = "clear.gif" width = "200" height = "1" > </td>
      <td width="100%"></td>
      </tr>
      <tr>
      <!-- HERE IS YOUR CONTENT -->
      <td> COL 1 CONTENT </td>
      <td> COL 2 CONTENT </td>
      <td width = "100%"> COL 3 CONTENT </td>
      </tr>
      </table> 
      

      Comment

      Working...