Two Tables!!!

Discussion in 'HTML & Website Design' started by bobby9101, Jul 17, 2005.

  1. #1
    i have a problem I would lik these two tables to be side be side
    is this possible?
    <td width="490" valign="top">
     <table width="80%" height="90%" bgcolor="#FFFFFF" cellpadding="15" cellspacing="0" style="border: solid 5px darkblue;">
    <tr>
    <td>
    Thank you for your help.
    <hr color="darkblue" size="4">
    i am a proud member of 411domain.com
    </td>
    </tr>
    </table>
    <td width="490" valign="top">
     <table width="20%" height="90%" bgcolor="#FFFFFF" cellpadding="15" cellspacing="0" style="border: solid 5px darkblue;" align="right">
    <tr>
    <td>
    <br>
    Thanks again
    <br>
    <br>
    <hr>
    <br>
    :)
    <br>
    </td>
    </tr>
    </table>
    <br />
    Code (markup):
    the screenshot of it
    [​IMG]
     
    bobby9101, Jul 17, 2005 IP
  2. lorien1973

    lorien1973 Notable Member

    Messages:
    12,206
    Likes Received:
    601
    Best Answers:
    0
    Trophy Points:
    260
    #2
    From what I can tell, you are not ending this TD

    <td width="490" valign="top">

    You need to end it before your begin the second table.

    That should make it appear next to ethe other one.
     
    lorien1973, Jul 17, 2005 IP
  3. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #3
    TD's don't have to be ended according to the HTML spec (not a good style, though).

    Tables are block-level elements and will take up the entire width of the parent element (e.g. the viewport), even if they are shorter than this width. If you want one table to follow another, you can put them in yet another table or you can use some other CSS techniques. For example, making the first table float will put the next one on the same line:

    <table style="width: 100px; height: 100px; border: 1px solid red; float: left;">
    <tr><td></td></tr>
    </table>

    <table style="width: 100px; height: 100px; border: 1px solid blue;">
    <tr><td></td></tr>
    </table>

    J.D.
     
    J.D., Jul 17, 2005 IP
  4. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i got it thanx.
    now how do i remove one border from the right sidde of a table
    e.g.
    _______________
    | ```````````` < no border here
    | ```````````` < no broder on this side
    |````````````` < "
    |````````````` < "
    |______________< "
     
    bobby9101, Jul 17, 2005 IP
  5. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #5
    J.D., Jul 17, 2005 IP