Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table Wrapping/Filling

Status
Not open for further replies.

fatcodeguy

Programmer
Feb 25, 2002
281
CA
Hi,

I have a table with several colums. One column specifically will have a lot of text, and I want that column to wrap every 50 characters or so. However, I want only that column to wrap.

I want this because at the moment, that text column takes up so much space, that the columns that follow it develop breaks in the line where I don't want them.

Any suggestions?

Thanks!!
 
1) give it an explicit width
2) make sure you're not specifying "nowrap"

Code:
<table>
  <tr>
    <td style="width: 100px;"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
</table>

*cLFlaVA
----------------------------
[tt]insert funny quotation here.[/tt]
 
Or if you want it to wrap 50 characters, use [tt]width: 50em;[/tt].

--Chessbot

There is a level of Hell reserved for probability theorists in which every monkey that types on a typewriter produces a Shakespearean sonnet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top