30 users online (0 members and 30 guests)  


  Results 1 to 2 of 2

Related

  1. Replies: 1
  2. Replies: 1
  3. Replies: 1
  4. table with exact width problem...    Forum: HTML Forum
    Replies: 4
  1. #1
    Aminalaizer's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2003
    Posts
    16

    Cool Width of rows in table.

    Sorry about my grammer,
    English isn't my mother language.

    Hello please see this short source Code:

    <table border=1 width=100%>
    <tr><td width=50px>a</td><td>&nbsp;</td></tr>
    <tr><td>a affdg<td><img></td>
    </table>

    The browser (IE) doesn't understand what I want to do.
    I want that the left cell in the first row will be only 50px. At you can see if I write only one letter in the left cell in the second row, it will be 50px, but when I write "a affdg..." the cell expand to more than 50px, I can't write <br> because this is dynamic text (that computed in ASP).

    Thank you,
    Aminadav

  2. #2
    coothead's Avatar
    bald headed old fart

    Status
    Offline
    Join Date
    Aug 2003
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    732
    Hi there Aminalaizer,

    Your English is fine
    Your coding will improve with time

    <table border="1" width="100%">
    <tr><td width="50"px is not needed here>a</td><td>&nbsp;</td></tr>
    <tr><td width="50">a affdg</td><td><img></td></tr>
    </table>
    The text will now wrap within the 50px cell,
    unless it contains a word whose length
    is greater than 50px, in which case the cell will
    expand to accommodate it

    cthead



Tags for this Thread