I need to wrap a long string and want the strong to break at the line break. The solution must be supported by all browsers.
The break in the b’s and d’ should occur as follows:
Aaaa Bbbbbb
bbbbbbbbbb
Ccccc Dddddd
ddddddddddd
The tag word-wrap:break-word breaks a string but doesn’t fill the line before the break. Here’s what happens:
Aaaa
Bbbbbb
Bbbbbbbbbb
Ccccc
Dddddd
ddddddddddd
The tag word-break: break-all does exactly what I need but doesn’t work in Firefox and ie7 and under. It only works in Chrome, Safari and ie8.
The text-wrap tag does exactly what I need but isn’t yet supported by any browser.
Any suggestions?
FYI: I’m currently managing the break with PHP.