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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controling line breaks in a table cell <td>

Status
Not open for further replies.

scc

Programmer
Apr 30, 2001
218
US
I have a row in my table that I would like to control the line breaks. On some of the cells, if the cell is wide enough I don't want the cell to break on two lines, while in another cell in the same row I want to force a line break at a certain point.

Is there a way to control each of these cells in that exist in the same row?

TIA!
 
you can use...
Code:
<TD NOWRAP>some content here</TD>
[/code
...to stop the contents from wrapping onto more than one line.

Could you not use <BR> wherever you wanted a line break??
 Tony
[URL unfurl="true"]http://www.phoenix-paints.co.uk/portfolio[/URL]
 
Thanks! Was getting my languages mixed up on the line break in the cell. (Duh!#@$)

As for the NoWrap, what happens when the data is longer than the length of the field? Is it just cut off, or will it go ahead and wrap?

TIA
 
The field length will not matter. If it goes over, it will become longer.

Rick If I have helped you just click the first link below to let me know :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top