|
-
Aug 10th, 2002, 09:50 PM
#1
Thread Starter
Frenzied Member
Fixed width cells in tables with ASP???
I am displaying a line of text for each column in a table and the columns keeps changing sizes even when I specify the width of each. They keep expanding with the text. Is there any way to set the width of cells to a fixed width and force the text to either wrap or be cut off? I have tried everything and search for answers too!
-
Aug 11th, 2002, 02:36 AM
#2
Hyperactive Member
What I do (And alot of other people do) is place a transparent gif in a header row with a specific width;
Code:
<table width="200">
<tr>
<td><img src="./shim.gif" width="100" height="1"></td>
<td><img src="./shim.gif" width="100" height="1"></td>
</tr>
<tr>
<td>Test one</td>
<td>Test two</td>
</tr>
</table>
That way the header sizes will always be the same and force a wrap
HTH
MarkusJ
-
Aug 11th, 2002, 09:14 AM
#3
Lively Member
If your text contains spaces in between it will follow the next line. But if your text is a continous without spaces it will be displayed in a single line only. If you still want it to be done, you write code deciding ceratin number of characters per line and make the reamining characters to the displayed in the next line. just insert <br> tag after certain number of characters.
Your attitude determines your altitude!!!
-
Aug 12th, 2002, 03:48 PM
#4
Black Cat
Also, there's a <nobr> tag to wrap text in, along with (non-breaking space).
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|