How to set a text automatic line break in php html ?

Sultan

New member
I'm making a Private Messaging System in php.
It is working nicely but the problem is when the Subject or Body of the message
is too long, it disturb the css formatting of page.
I want that when subject is too long it should be shown some words and after that some dots just like yahoo mail. For example If the subject is " John is saying you hello in this mail "
John is saying you he......

How can I do this with subject.
And when the body of message is too long, there should be automatic line break.
 
Back
Top