column width irritation ...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • asearle
    New Member
    • Sep 2006
    • 39

    column width irritation ...

    Hi everyone,

    I have a table which, in order to line up with other information, needs to have very exact column widths.

    So far I have implemented the following with normal HTML tables ...

    <td align="RIGHT" width="77">

    ... which works OK most of the time.

    However, sometimes the data contained in the table overshoots the column width and the table starts to 'distort'.

    So my question is whether there is a way to make the column widths 'absolute' thereby suppressing any changes caused by querks in the data?

    Maybe this has something to do with the declared table width ...

    <TABLE width="999" border="1" ALIGN="LEFT">

    ... or should I leave out a declared table width when the colum widths are specifically declared?

    Many thanks for any tips you can give me.

    Regards,
    Alan Searle
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    I don't know what you're talking about, perhaps post your entire code?

    this worked fine for me....

    Code:
     
     
    <table width="100px">
     <tr>
      <td style="overflow:hidden ">This content stretches over 100 pixels but wraps to next line</td>
     </tr>
    </table>

    Comment

    Working...