Text wrapping in a html table cell

Associate
Joined
12 May 2005
Posts
82
Location
Chester
Hello

I am trying to get some text to wrap within a table cell depending on the size of a table nested within the same cell.

It might be easier to explain with an example!!

Code:
<html>
<table><tbody>
    <tr><td>
    [COLOR=Red]The text that needs to wrap goes here.[/COLOR]<br>
    <table><tbody>
        <tr><td>Some Text Here</td><td>a</td></tr>
        <tr><td>Some Text Here</td><td>b</td></tr>
        <tr><td>Some Text Here</td><td>c</td></tr>
    </tbody></table>
    </td>
    <td>More text here</td></tr>
</tbody></table>
</html>
I want the inner table to determin the width of the cell and the text above it to wrap in the cell. I presume that there is a style property that will sort this out for me but I can't find it!!

I know that I should be using divs but I am tied into tables in this case.

Thanks for any help.
 
Back
Top Bottom