![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Location: Vallejo, CA
Posts: 15
Rep Power: 0
![]() |
word wrap in a table cell? <solved!>
I have a narrow table with narrow columns within in. One column may have long entries entered, but I want the table to keep its shape rather than being stretched by the long entries. How can I apply a word wrap attribute to this table cell? Or the whole table? Thanks!
![]() Last edited by kerriganm; May 6th, 2005 at 5:42 PM. |
|
|
|
|
|
#2 |
|
Programmer
|
hmm...
Mine automatically wraps... if all else fails, try this: <table width=100%> Good luck!
__________________
I had a dream that Triumph the Insult Dog owned Microsoft... How...appropriate. |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Apr 2005
Location: Vallejo, CA
Posts: 15
Rep Power: 0
![]() |
The table width is set to 100%, but it's in a frame (Yeah, I know, I know, I didn't design it...) that's only about 164 pixels wide. When a long entry appears, the table stretches and a horizontal scrollbar appears at the bottom of the frame. My boss doesn't like this. She wants the entry 9933994857665 to appear something like:
9933994 857665 and the table row to suitably double its height. Can it be done? Oh, please, someone, tell me how. Then give me your boss' phone number and I'll tell him to give you a raise. |
|
|
|
|
|
#4 |
|
Programmer
|
Ah-ha!
I'm a superhero! <table> <tr><td style="width:43px; word-wrap=break-word">aklklsjhdskljhfdsklh</td> <td>boo</td> </table>
__________________
I had a dream that Triumph the Insult Dog owned Microsoft... How...appropriate. Last edited by MonkeyRevolution; May 6th, 2005 at 4:23 PM. |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Apr 2005
Location: Vallejo, CA
Posts: 15
Rep Power: 0
![]() |
You are a superhero, no doubt. But it turns out what I really needed was:
<td style="word-break: break-all">. I'll still tell your boss you deserve a raise, though. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|