View Full Version : wrapping text

12-19-2005, 01:49 PM
Ok I am not sure if this is m,ysql/php/css issue. I have a working php script that reads in the 30 newest news items form mysql database and print them on on the websites along with css for formatting. What I started to notice after add php and mysql is that if I write none stop test no white line like:

hasdofajshadbjckbnawergkasnbdrkahgsdknbfckashgfaksygdrkjbrsadkhsvjhzxnbfvawkjsrgaksjdbnfknasbfkjshga dfkbv

That test goes over the potion of space it should, it is like the text will not "wrap" if there is no space. is there a way a wrapping text even if there is no space?

12-19-2005, 02:36 PM
You can use word-wrap: break-word in the CSS, although this is IE only.

As far as I'm aware CSS does not have any other properties for wrapping, so you may need to perhaps look at splitting up the text in PHP first.