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

Tables

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How can you set the columnwidth in a table absolute when the contained text is a long string with no spaces? Is there any way to truncate( or wrap) this string or set the width of the <TD>?
 
you can set the width property inside the td to either a value of pixels or percentage of available space:
<td width=80%> or <td width=50>

ray
rheindl@bju.edu

 
<td width=&quot;...&quot;> to specify the width in pixel but it won't work for your string as you have no space
so you should use css and specify the width, and the clip properties etc...

 
<td><div style=&quot;width:100; height:60; clip:rect(0px 0px 100px 60px); overflow:wrap;&quot;>text</div></td>

You could set the style directly in the td, but I don't think NS handles that. It should take the div though.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top