Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,500,746
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-29-24 11:39 AM
Guest: Register | Login

0 users currently in Computing | 1 guest

Main - Computing - How to make a table NOT stretch with a long word? New thread | New reply


darkwitch
Posted on 03-16-07 12:59 PM Link | Quote | ID: 15732


Paragoomba
Level: 20

Posts: 38/65
EXP: 41518
Next: 921

Since: 02-21-07
From: Puerto Rico

Last post: 6224 days
Last view: 6224 days
I really need to know how to do that (so it instead cuts the word) because my tables get messy when I input a BIG word with no spaces; ex a long url.

Xkeeper
Posted on 03-16-07 01:01 PM Link | Quote | ID: 15734


Level: 105

Posts: 888/2846
EXP: 12031146
Next: 231114

Since: 02-19-07

Last post: 6063 days
Last view: 2800 days
Put simply, you don't.

(Though you could use PHP and "wordwrap", but that'd break long lines anywhere; even if it's a "<a href=lolololol>heh</a>" link)

____________________
I dealt with it.

Kernal
Posted on 03-16-07 01:40 PM Link | Quote | ID: 15753

Gone
Level: 88

Posts: 696/1881
EXP: 6463752
Next: 186912

Since: 02-20-07

Last post: 6149 days
Last view: 6140 days
In the case of a URL, just use a tag instead to give the URL text a different name.

Like this:

<a href="http://www.whatever.com/something.htm">Link text goes here</a>

darkwitch
Posted on 03-16-07 02:01 PM (rev. 3 of 03-16-07 02:05 PM) Link | Quote | ID: 15757


Paragoomba
Level: 20

Posts: 40/65
EXP: 41518
Next: 921

Since: 02-21-07
From: Puerto Rico

Last post: 6224 days
Last view: 6224 days
There is a wordwrap function in PHP? Let me check.

Edit: Thanks that is exactly what I need.

HyperHacker
Posted on 03-25-07 07:51 AM (rev. 2 of 03-25-07 07:53 AM) Link | Quote | ID: 19012

...
Level: 73

Posts: 35/1220
EXP: 3367603
Next: 118265

Since: 03-25-07
From: no

Last post: 6094 days
Last view: 6078 days
There's also the CSS "overflow" property.

overflow: hidden:
QWERTYUIOPASDFGHJKLZXCVBNM


overflow: none (default):
QWERTYUIOPASDFGHJKLZXCVBNM


overflow: auto:
QWERTYUIOPASDFGHJKLZXCVBNM


The third box should have a scroll bar, not sure why it doesn't here. Notice though if you try to select the text, you can scroll it by dragging right.

Kernal
Posted on 03-25-07 03:38 PM Link | Quote | ID: 19075

Gone
Level: 88

Posts: 947/1881
EXP: 6463752
Next: 186912

Since: 02-20-07

Last post: 6149 days
Last view: 6140 days
The scroll bar appears for me (in the latest version of Firefox)...

Xkeeper
Posted on 03-25-07 06:43 PM Link | Quote | ID: 19112


Level: 105

Posts: 1033/2846
EXP: 12031146
Next: 231114

Since: 02-19-07

Last post: 6063 days
Last view: 2800 days
It appears here (Opera 9)... it might be because the box itself has no set height, so there's no room for the scroll bar.

QWERTYUIOPASDFGHJKLZXCVBNM


Of course, there's another problem with this:

QWERTYUIOPASDFGHJKLZXCVBNM
aga
sdg
dga
dg
dsga
dsg
sadg
adsg
asd
gas
g
gs
ohno!




____________________
I dealt with it.

HyperHacker
Posted on 03-26-07 05:49 AM Link | Quote | ID: 19362

...
Level: 73

Posts: 56/1220
EXP: 3367603
Next: 118265

Since: 03-25-07
From: no

Last post: 6094 days
Last view: 6078 days
Yes, I should probably add: NEVER USE OVERFLOW: AUTO TO MAKE A LAYOUT >8^(

Acmlm
Posted on 03-27-07 04:44 AM Link | Quote | ID: 19836


Flurry
Level: 37

Posts: 167/251
EXP: 315112
Next: 23141

Since: 02-19-07
From: Mirabel, Québec, Canada

Last post: 6183 days
Last view: 1816 days




Flurry
#&postrank&
For here, I just made it split long words by inserting spaces, but only for thread titles ...

I think there was a CSS property to force wrapping, but it cut in the middle of words and such (even short)

____________________

Metal_Man88
Posted on 03-27-07 09:06 AM Link | Quote | ID: 19892


Level: 48

Posts: 155/458
EXP: 776685
Next: 46858

Since: 02-19-07
From: The Void

Last post: 3033 days
Last view: 3033 days
I just force the size of a table with <table> attributes, they should crush any words which disobey you.

As well as modern specifications. >.>

Main - Computing - How to make a table NOT stretch with a long word? New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.023 seconds. (321KB of memory used)
MySQL - queries: 47, rows: 65/66, time: 0.015 seconds.