Jump to content

Tables growing proportionally out of size. Fix?


miffe

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...