Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 6th, 2005, 12:59 PM   #1
kerriganm
Newbie
 
kerriganm's Avatar
 
Join Date: Apr 2005
Location: Vallejo, CA
Posts: 15
Rep Power: 0 kerriganm is on a distinguished road
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.
kerriganm is offline   Reply With Quote
Old May 6th, 2005, 2:36 PM   #2
MonkeyRevolution
Programmer
 
MonkeyRevolution's Avatar
 
Join Date: Apr 2005
Location: In the toaster. Shh!
Posts: 57
Rep Power: 4 MonkeyRevolution is on a distinguished road
Send a message via AIM to MonkeyRevolution Send a message via MSN to MonkeyRevolution Send a message via Yahoo to MonkeyRevolution
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.
MonkeyRevolution is offline   Reply With Quote
Old May 6th, 2005, 3:15 PM   #3
kerriganm
Newbie
 
kerriganm's Avatar
 
Join Date: Apr 2005
Location: Vallejo, CA
Posts: 15
Rep Power: 0 kerriganm is on a distinguished road
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.
kerriganm is offline   Reply With Quote
Old May 6th, 2005, 4:08 PM   #4
MonkeyRevolution
Programmer
 
MonkeyRevolution's Avatar
 
Join Date: Apr 2005
Location: In the toaster. Shh!
Posts: 57
Rep Power: 4 MonkeyRevolution is on a distinguished road
Send a message via AIM to MonkeyRevolution Send a message via MSN to MonkeyRevolution Send a message via Yahoo to MonkeyRevolution
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.
MonkeyRevolution is offline   Reply With Quote
Old May 6th, 2005, 5:38 PM   #5
kerriganm
Newbie
 
kerriganm's Avatar
 
Join Date: Apr 2005
Location: Vallejo, CA
Posts: 15
Rep Power: 0 kerriganm is on a distinguished road
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.
kerriganm is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:58 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC