| |||
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
... 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: 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 |
| ||
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 |
| ||
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 |
| ||
... 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 |
| ||
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 |
| ||
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 |
© 2005-2023 Acmlm, blackhole89, Xkeeper et al. |
MySQL - queries: 47, rows: 65/66, time: 0.015 seconds. |