Anchot table

Discussion in 'HTML & Website Design' started by bradc, May 30, 2008.

  1. #1
    I have a 4 row 1 column table that I want to Anchor to the left, right, top, bottom of the browser. The rows need to different heights.


    Does anyone known the best way to do this, with css?
     
    bradc, May 30, 2008 IP
  2. clinton

    clinton Well-Known Member

    Messages:
    2,166
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Left and right is easy, but the top and bottom might be a pain.

    For left and right you just do

    table tr td
    {
    width: 25%;
    }
    HTML:
    
    <table>
      <tr>
        <td>Left</td>
        <td>Middle</td>
        <td>Right</td>
      <tr>
    </table>
    
    HTML:
    I'm not sure of the issue with top and bottom, so I'll see if anyone else replies about that part.
     
    clinton, May 30, 2008 IP