• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 816
  • Last Modified:

Word Break and PHP

If you look at the two news articles at the top here. The one on the right has problems as there is no word break. This leaves a big gap. Is there a way to break the word with php?


http://vps.aztechost.co.uk/~trisco/
0
roscoeh23
Asked:
roscoeh23
  • 2
1 Solution
 
hernst42Commented:
Are you lookingf for something like http://www.php.net/manual/en/function.wordwrap.php ? Don't see a missing word-wrap in that link (with FF)
0
 
DeeEmmCommented:
You can also do this in CSS by applying the attribute - word-wrap: break-word - you can add it to the body tag for it to apply across the whole document. I believe that the element (or it's parent) needs to have a width set for the word-wrap attribute to work.

Remember - Style should be controlled by style sheets. ;)

DM.
0
 
roscoeh23Author Commented:
None of these methodes work as the problem is the hyperlink. Britishtriathlon.org.

Any ideas?

Ta.
0
 
hernst42Commented:
No but breaking links over several line is in my opinion no good idea. You can try to add spaces after the. or just use the domain without the www in front of. Or use other text like homepage of XX which will break correctly.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now