English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

5 answers

I'm not sure what you mean by crop text. If you mean keep the table cell a certain width, you need to set the width, thats the only way.

If you mean to keep the cell a certain height, use css -
lots of content
thats too large

2006-08-17 09:03:30 · answer #1 · answered by John J 6 · 0 0

While displaying the content, truncate it. This can be done like this:
1) if you are displaying dynamic content i.e. content read from database, then in your SELECT statement, use substr( ) to truncate the text
2) if you displaying static text, then you should manually truncate text using a javascript function or vbscript function

2006-08-17 17:46:54 · answer #2 · answered by Indian_Male 4 · 0 0

If you mean crop it as in so it's like [This text is too bi...] Then you can't do it in HTML. Best bet to do it without anything like ASP or PHP would be to use JavaScript and substring it.

2006-08-17 08:13:23 · answer #3 · answered by Anonymous · 1 0

If all else fails, can you create another spacer cell? Try that

2006-08-17 08:09:28 · answer #4 · answered by Mama R 5 · 0 0

or whatever number of pixels you want.

2006-08-17 08:14:36 · answer #5 · answered by Anonymous · 0 1

fedest.com, questions and answers