×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    4

    width of table cells

    I'm trying to make a simple table with names and status indication of the specified person. This is in the folowing (simplyfied way):
    <table>
    <tr>
    <td>name</td><td>status</td>
    </tr>
    </table>

    Now i want to align the name to the left side and the picture to the right side. This is why i putted it in two cells. But when i do this the cell width is always 50% of the screen (with the nokia toolkit emulator). Is there a way tot change the width of the cell? i serched a lot in CSS info but i couldn't find it. Does somebody know?

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    8

    RE: width of table cells

    You should be able to use the width and text-align properties for this.

    .colleft{
    width: 80%;
    text-align: left;
    }
    .colleft{
    width: 20%;
    text-align: right;
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×