Im having problems with wordwrap()
Posted: Sun Oct 28, 2007 2:14 pm
feyd | Please use
Cut's set to TRUE, so it should work, but it's not and i can't understand why. The page it's being used on is:
http://www.project-dz.com/list.php
If I input something like "WWWWWWWWWWWWWWWWWWW..ect" It breaks every 115 characters, but the cut fails and it stretches the page anyways. (sorry for being redundant, im just trying to make my problem clear)
Here's my css, i think it might have something to do with it:
The td "msg" is set to 790 px, so the cut should put a break at 790.. I don't understand why it isn't working :\
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
The syntax is right, I know that. It technically works, it cause it puts a <br /> tag every 115 characters. But, the 'cut' part of it's not working. Neither is my CSS overflow, for that matter.
Here's a little PHP snippet..Code: Select all
$message = wordwrap($messageb,115,"<br />\n",TRUE);http://www.project-dz.com/list.php
If I input something like "WWWWWWWWWWWWWWWWWWW..ect" It breaks every 115 characters, but the cut fails and it stretches the page anyways. (sorry for being redundant, im just trying to make my problem clear)
Here's my css, i think it might have something to do with it:
Code: Select all
table.list {
background-color: transparent;
width: 1000px;
border: medium double #FFFFFF;
overflow: hidden;
}
td.msg {
vertical-align: top;
width: 790px;
overflow: hidden;
}
td.side {
font: caption;
width: 190px;
vertical-align: top;
overflow: hidden;
}
td.post {
width: 5px;
vertical-align: top;
}
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]