Click here to get back home

how to wrap this single long name in a table?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
how to wrap this single long name in a table? dubing 04-05-2006
Get Chitika Premium
Posted by dubing on April 5, 2006, 10:20 am
Please log in for more thread options


Hi,

This following table is populated with data pulled out from a backend
database and published on a website. Right now, most name fields have
a lot white space due to some names are too long.

Smith, James 29
Fooooooooooooo, Baaaaaaarrr 40
Knight, Mary 21

How should the table structure be defined so long names could be
automatically wrapped as shown below?

Smith, James 29
Fooooooooooooo, 40
Baaaaaaarrr
Knight, Mary 21

Thanks in advance for any help,

Bing


Posted by dubing on April 5, 2006, 12:16 pm
Please log in for more thread options


Never mind. I've figured it out. I just noticed the html code had
<nobr> defined in the first column of the table. Removing <nobr> made
the table's width adjust fine.

Bing


Posted by Jukka K. Korpela on April 5, 2006, 12:32 pm
Please log in for more thread options


dubing@gmail.com wrote:

> This following table is populated with data pulled out from a backend
> database and published on a website. Right now, most name fields have
> a lot white space due to some names are too long.

Although you later commented that you had solved the problem by removing
<nobr> markup, I just have to remark that you have described the problem all
wrong. Saying that someone's name is too long is almost an insult. Saying
that the width available for a name is too narrow is a statement of a fact,
often related to wrong design of some data processing application.

Generally, a person's name should be kept on one line in a table. It might
even be advisable to use markup (e.g., <td nowrap>) to achieve this. Whether
this is practical depends on the table as a whole.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


Similar ThreadsPosted
Prevent word wrap in a table cell March 14, 2006, 6:39 pm
Making a multi cell table row a single hyperlink. May 30, 2005, 4:03 am
To wrap or not to wrap "C++"? September 13, 2008, 10:23 am
HOWTO: html no wrap? July 24, 2007, 2:57 am
Can I wrap an tag inside an tag? May 15, 2008, 3:50 pm
Newbie Text Wrap Question October 6, 2005, 3:29 am
css text wrap and background problem July 17, 2007, 7:48 am
Newby image/ text wrap question December 18, 2006, 4:46 am
Very Long Select !!! May 10, 2006, 2:13 am
Make a sinlge long doc out of many December 1, 2007, 11:05 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap