Forum Moderators: open

Message Too Old, No Replies

Unwanted Extended 'Fixed Width' Tables

Fixed Width Tables not sticking to figures.

         

Quicksilver

3:26 pm on Mar 31, 2003 (gmt 0)

10+ Year Member



Hi all,

Probably a simple one, but its got me stumped.

I have a '795px' wide table with a row spanned into 4 cells each set to 196px.

My Problem:

I'm importing unformatted text data from a mySQL database into each of the cells, but when it is inserted, it prints as if it was set to 'nowrap', and stretches the entire table far beyond its 'hard-coded' settings.

also, when it does that, it doesnt actually change the code..

Is there a way I can force it to stay 'fixed' and automatically <BR> the imported text?

You can see an Example here: <snip>

All help appreciated. ;o)

[edited by: korkus2000 at 3:28 pm (utc) on Mar. 31, 2003]
[edit reason] no specifics please [/edit]

Nick_W

3:30 pm on Mar 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld! [webmasterworld.com]

The only time that this happens (AFAIK) is when there are no natural 'breaks' like a space, newline or tab in the text.

If the browser thinks the text is 'all one word' it doesn't know where to break it so doesnt.

The best way to deal with it? - Tackle it before it gets to the table.

Nick

Alternative Future

3:31 pm on Mar 31, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello and Welcome to Webmasterworld Quicksilver,

Your string lengths are to fault I *think* if the word extends any amount of reasonable chars then it will force the table to extend!

Not sure if this is what you mean or not though :(

HTH,

-gs

Quicksilver

4:06 pm on Mar 31, 2003 (gmt 0)

10+ Year Member



cheers for the welcome and quick reply,

I knew it would be something simple.
In my search for something wrong in the code I completely overlooked the content itself.

saved!

hehe.. cheers once again.

- Q