Solved

making a <td> multiline..?

Posted on 2004-05-02
3
2,000 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
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 …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

896 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

11 Experts available now in Live!

Get 1:1 Help Now