
Eric
|
| Posted: 04/11/2005, 6:16 PM |
|
When displaying data in a CSS grid,
Is there an easy way to limit the contents of a column to one line even if the value is longer that the space available in the column?
The "nowrap" attribute should prevent wrapping but does not always appear to work. Also it can make cells very wide.
I can see one method to limit the data is to clip the text string to a maximum width but a CRLF sequence (carriage return / line feed) in the string appears to still display two lines. One could search for CRLF but I wonder if there is an easier way to limit the text in the columns so the columns are always a fixed size.
TIA
|
|
|
 |
Nicole
Posts: 586
|
| Posted: 04/12/2005, 2:58 AM |
|
Eric,
You can cut long text value displayed in a Label in its Before Show event and output fixed length string (e.g. first 50 characters). In this case apply PHP strung functions to field’s value to cut it http://www.php.net/manual/en/ref.strings.php
In addition to it you can set fixed width to a table cell via HTML styles, e.g.
<td class="CaravanDataTD" style="WIDTH: 50px">{LabelField} </td>
_________________
Regards,
Nicole |
 |
 |
|

|
|
|
|