PDA

View Full Version : Wordwrap Substitute


fanfavorite
08-17-2007, 05:34 PM
I am trying to find a substitute for word-wrap:break-word. If there is a string of spaces like this:

                                                                                                                                                    

It will push my table width and mess up the design. wordwrap works, however it does not work on all browsers and is not valid css.

I am hoping there is a substitute for this.

Thanks!

-JC

Arbitrator
08-17-2007, 07:31 PM
If there is a string of spaces like this:

                                                                                                                                                    The No‐Break Space character exists to prevent line‐breaking opportunities immediately before and after it. It only makes sense that there would be no line‐breaks permitted within the string you’ve shown. The solution is to remove the characters if their behavior is undesirable.

fanfavorite
08-17-2007, 07:35 PM
Ok, well I guess my only solution is to set a str_replace to remove those characters then. Thanks.