breaking long lines - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

breaking long lines

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
[code]
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
[/code]
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
[code]
WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWW
[/code]
from the above, or even better:

[code]
WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWW...
[/code]
;-)
-mac-
mailto:[email protected]
the Netherlands...

Comments

  • mac_doggiemac_doggie Posts: 488Member
    : 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
    : [code]
    : WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
    : [/code]
    : 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
    : [code]
    : WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
    : WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
    : WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
    : WWW
    : [/code]
    : from the above, or even better:
    :
    : [code]
    : WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
    : WWWWWWWWWWWWWWWWWWWWWWWWWWWWW
    : WWWWWWWWWWWWWWWWWWWWWWWWWW...
    : [/code]
    : ;-)
    : -mac-
    : mailto:[email protected]
    : the Netherlands...
    :
    :


    I allready found out, but thanks anyway.

    For those who have the same problem:
    [code]
    WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
    [/code]
    ;-)
    -mac-
    mailto:[email protected]
    the Netherlands...


Sign In or Register to comment.