miffe Posted April 14, 2008 Share Posted April 14, 2008 Hey guys,Whenever, say, someone introduces a row into a table with a very long sentence with no spaces, for example "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" and my table width is say 400, it expands the width, which in some cases distorts the whole view of the website.Is there any way to break the sentence up into a paragraph? (various lines).Thanks a lot,miffe Link to comment Share on other sites More sharing options...
Ingolme Posted April 14, 2008 Share Posted April 14, 2008 If the content is dynamic you can format the string before printing it there: ...<td><?php echo wordwrap($text, 50); //$text would be the variable I have my string in ?></td>... Link to comment Share on other sites More sharing options...
miffe Posted April 14, 2008 Author Share Posted April 14, 2008 If the content is dynamic you can format the string before printing it there:...<td><?php echo wordwrap($text, 50); //$text would be the variable I have my string in ?></td>... thanks a lot for the quick response :)Lookin for this for a long time now ++ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.