aligning a html table

Discussion in 'HTML & Website Design' started by Dirty-Rockstar, Aug 15, 2007.

  1. #1
    Last table on the bottom i want it to align to the right of the 3 above and i cannot seem to do it.

    helpage?

    thanks


    
    
    
    <table width='75%' height='200px' border=1>
    <tr>
    <td valign='top'>
    KACHOW
    </td>
    </tr>
    </table>
    
    
    <table width='75%' height='200px' border=1>
    <tr>
    <td valign='top'>
    ZABAMMMMMM
    </td>
    </tr>
    </table>
    
    <table width='75%' height='200px' border=1>
    <tr>
    <td valign='top'>
    ZABLAMMO
    </td>
    </tr>
    </table>
    
    //The right of those boxes <----where the issue is
    
    
    
    <table width='' height='100%' valign='right' border=1>
    <tr>
    <td>
    D<br />
    O<br />
    W<br />
    N<br />
    </td>
    </tr>
    </table>
    
    
    
    
    
    
    
    HTML:
     
    Dirty-Rockstar, Aug 15, 2007 IP
  2. Clive

    Clive Web Developer

    Messages:
    4,507
    Likes Received:
    297
    Best Answers:
    0
    Trophy Points:
    250
    #2
    First off, this attribute has a wrong value in your code. To align your table to the right, you are probably looking for "align" while "valign" is used to vertically align content inside <td> tags.
     
    Clive, Aug 15, 2007 IP
    Dirty-Rockstar likes this.
  3. PHPGator

    PHPGator Banned

    Messages:
    4,437
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    260
    #3
    I tested it, Clive is correct, change valign= to align=
     
    PHPGator, Aug 15, 2007 IP
    Dirty-Rockstar likes this.
  4. Dirty-Rockstar

    Dirty-Rockstar Guest

    Messages:
    252
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yep, that did it. and i put that bottom table to the top, aligned it right and changed the width to 168 px and i got the result i wanted. 1+ for both
     
    Dirty-Rockstar, Aug 15, 2007 IP