Reply to Re: size of cell wrong if data long

Your name:

Reply:


Posted by Jukka K. Korpela on 08/29/07 20:19

Scripsit tshad:

> I am having problems with cells that have long data with no spaces to
> break on

Such issues have been discussed fairly often in this and other newsgroups.
Check past discussions via Google Groups or otherwise.

> I have a table that has 5 cells of defined lengths
> (50px,50px,50px,50px,200px)

Stop setting fixed widths. Remove all width attributes from HTML and width
property settings in CSS. Consider adding some percentage or em settings
then, _if needed_.

> The problem is when I am using an email where there are no spaces in
> the text for the program to break on.

An email address isn't that long, so if you remove the fixed widths, you
solve the problem (or, rather, stop creating it). An email address should
seldom be broken across lines anyway. If you feel you ever need to do that,
reconsider the design decisions that led to such a situation.

> Here is an example of the file and table:

In future, post a URL, not bulks of code. Hang around and you'll see reasons
to this.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация