Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fixed Width Cell and Text Wrapping

Status
Not open for further replies.

KingofSnake

Programmer
Jul 25, 2000
73
US
Alright....I have come across a problem.

I have made a table like I wanted, shown here:
However, when I add lots of text in the "D" cell, instead of the text wrapping to the next line, the table becomes distorted and loses its width values. You can see an example here:
I awlays thought that if you defined the width values in a cell, then the cell would awalys keep that size and shape. But apparently not. Can anyone help me?
KingOfSnake - The only sports drink with ice crystals
(and marshmellos!)
 
This can help:

<td width=150 rowspan=3>
<div style=&quot;width:150px; height:90px; overflow:hidden&quot;>
TextTextTextTextTextTextTextTextTextTextTextText
</div>
</td>

But the overflow of longs words is hidden now. If you'll see everything but still have the cell fixed, try
overflow:scroll or overflow:auto if you don't mind the scrolling bars.

I'm not sure if all NN-browser will do scroll or auto

Erik
 
I tried inserting a table in cell D, but that didn't work. The same thing happened.
KingOfSnake - The only sports drink with ice crystals
(and marshmellos!)
 
Sorry, I didn't see your post ErikL.

I think I have made a major goof here. This is very embarissing, and I deserve all the laughter you can dish out at me.

When testing the cell using &quot;ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd&quot; the table streches. However, testing the cell using &quot;ddddd dddddd ddddd word word word TEXTTEXT text&quot; (etc), the cell stays where I want it. I'm not using any long strings like &quot;dddddddddddddddddddddddd&quot; in the cell, so I don't know why in heck I tested this out with such a string.

My face is red, but I know I'm not the only one to complety screw something up. It happens to the best of us. I think.


KingOfSnake - The only sports drink with ice crystals
(and marshmellos!)
 
In my opinion there are no stupid questions!! Everyone has sometimes a black out, don't worry !!

And another thing: You better take WRONG decisions then NO decissions!

Erik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top