[SOLVED] cut of word problem.

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
webmasterinfo.no
Forum Newbie
Posts: 2
Joined: Fri Feb 04, 2005 5:15 am

[SOLVED] cut of word problem.

Post by webmasterinfo.no »

I have a div layer on my page that i load some text into from the database. This text is headlines and some of them is wery long. I want to cut each headline after 19 chars in the div layer named menuRight.

Example:

Tree blind dogs chewing on their legs without teeth.

will be:


Tree blind dogs c...

I found a lot about word wrapping, but not about this. Can anyone please help me?

Leon
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

webmasterinfo.no
Forum Newbie
Posts: 2
Joined: Fri Feb 04, 2005 5:15 am

Post by webmasterinfo.no »

Thanks
Post Reply