if any user enter long string e.g aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa it destroy the layout of the page. is there any solution which dont destroy our PHP page and string also not cut?
+2
A:
In your css you can use an attribute for style
as word-wrap:break-word;.
This will wrap or break the long word into the boundaries of your control width.
Beware this is supported only by IE, Safari and FF3.1 and above. Other browsers not sure.
Sachin Shanbhag
2010-09-30 10:48:31
+1 and it's actually used for the question body box as well.
Gordon
2010-09-30 11:04:50
Thank you so much. it solved my problem.
Rana Azeem
2010-10-06 14:03:57
@user459625: if @Sachin's answers helped you, you should vote it up and mark it as the accepted answer :D
Levi Hackwith
2010-10-06 16:12:30