Solved

making a <td> multiline..?

Posted on 2004-05-02
3
1,998 Views
Last Modified: 2006-11-17
i need to make a cells text contents mutline if they are too long, how can i  do that , below is the code, sometimes itemname is extra long and creates an undesirable effect on overall page appearence. how can i make itemnames multiline if they are longer than certain number of character??



<td nowrap>
                              <font face="Arial, Helvetica, sans-serif" size="-1" class="label">
                               &nbsp; #this.items.itemoid# - #this.items.itemname# &nbsp;</font>
                        </td>
0
Comment
Question by:finnstone
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
madwax earned 500 total points
ID: 10972402
Hi finnstone,

Dou you want your td to span over several rows or just to linebreak the data within the cell? If it is the latter you remove the nowrap attribute and specify a width for the td.

//madwax
0
 

Author Comment

by:finnstone
ID: 10972454
the second line is not indented like the first, how can i also do that. thanks!
0
 
LVL 7

Expert Comment

by:madwax
ID: 10972511
&nbsp; is the code for a non-breaking-space. Remove that and I think it will work out for you...

Regards,
//madwax
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now