HTML & WEB-Design

Moderators: Jonathan
Number of threads: 1249
Number of posts: 3348

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
breaking long lines Posted by mac_doggie on 24 Nov 2004 at 12:51 AM
Hi,

I know I can wrap lines in my tablecells with the wrap property, but if the data that is put into the cel is one huge line with no spaces or anything, my td will be put out of proportions. I want it to be of a fixed size even if my data doesn't fit in. Then it should just cut it off.

If I now fill in
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

my tablecell will get a greater width than I gave it.
wrap doesn't do anything in this case, only when there are spaces in the data.

can anyone tell me how to make
WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWW

from the above, or even better:

WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWW...


-mac-
mailto:mac_doggie@hotmail.com
the Netherlands...

Report
Re: breaking long lines Posted by mac_doggie on 24 Nov 2004 at 4:08 AM
: Hi,
:
: I know I can wrap lines in my tablecells with the wrap property, but if the data that is put into the cel is one huge line with no spaces or anything, my td will be put out of proportions. I want it to be of a fixed size even if my data doesn't fit in. Then it should just cut it off.
:
: If I now fill in
:
: WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
: 

: my tablecell will get a greater width than I gave it.
: wrap doesn't do anything in this case, only when there are spaces in the data.
:
: can anyone tell me how to make
:
: WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
: WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
: WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
: WWW
: 

: from the above, or even better:
:
:
: WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
: WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
: WWWWWWWWWWWWWWWWWWWWWWWWWW...
: 

:
: -mac-
: mailto:mac_doggie@hotmail.com
: the Netherlands...
:
:


I allready found out, but thanks anyway.

For those who have the same problem:
<td width="150px;" style="word-wrap: break-word;">WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW</td>


-mac-
mailto:mac_doggie@hotmail.com
the Netherlands...





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.