Solved

making a <td> multiline..?

Posted on 2004-05-02
3
2,015 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

630 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