MyBB Community Forums

Full Version: Problem in rendering text (bump...)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So i have this problem. I have an html table which displays news. I have a quick edit function much like mybb's. I enter some text, get's processed via ajax and is returned back to me.
Problem is the text has no newline and b0rks the whole page.

How it looks

[Image: 23h661e_th.jpg]


How its rendered in both Chrome and Firefox
[Image: sndx7n_th.jpg]
As you can see the table on the right is squashed..

How can i fix this?
shocker: giant lines of text with no break cause cells to run wide
Sorry i didn't get that.

All i know is that on any other websites even if i don't put linebreaks myself on text it still rendered properly, but on my website...that is not the case
It rendered fine...
You could try using php's wordwrap function
http://us3.php.net/manual/en/function.wordwrap.php
Nope, the function does not work
Set a specific width or max width for the DIV?
Setting the div's width helped the page not getting stretched anymore, but the text still has no linebreaks like there are here without pressing 'Enter' manually

EDIT:
I think it may be php(itself) related, not my script nor css as i tried with no css and no formatting functions whatsoever even editted the text from phpmyadmin, and still no linebreaks
Bump.