Line Break

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ding chavez
Forum Newbie
Posts: 6
Joined: Wed Aug 28, 2002 1:07 am
Location: Sacramento, Ca

Line Break

Post by ding chavez »

line break


ok i made the news thing... posting works...Viewing works


but if i leave a long post it runs off the page how do i make it so after the text reaches certain length it starts a new line instead of runing off the page. :?: :?: :?:

to understand what im saying goto http://www.dingdesign.net/news/

post a real long message(username and password dont matter)
then goto http://www.dingdesign.net/news/view6.php

Thanks
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

hmm...IE wraps the words and keeps the table at 75% width.
Which browser do you use?
User avatar
gotDNS
Forum Contributor
Posts: 217
Joined: Tue May 07, 2002 5:53 pm
Location: West Chester, PA

Post by gotDNS »

set a definate pixel width or something....unless the messag it one continuous, non-spaced string, then it'll wrap correctly in your happy little defined size box.

later on, -Brian
User avatar
gite_ashish
Forum Contributor
Posts: 118
Joined: Sat Aug 31, 2002 11:38 am
Location: India

Re: Line break

Post by gite_ashish »

Hi,

When i tried to open the site, somehow, i was not getting the pages on specified URL for view page i got 404 !

You can use wordwrap() to forcefully cutdown the lines after specified number of characters.

See PHP man for details:

:idea: http://www.php.net/manual/en/function.wordwrap.html


Regards,
Post Reply