PDA

View Full Version : Character limit in paragraph



PSmith
11-08-2009, 11:17 PM
Hello,

I would like to set a character limit on a paragraph, to display only 350 characters regardless of how many characters are in the <p> tags.

How would I go about doing this?

Thanks,
PSmith

Excavator
11-08-2009, 11:30 PM
Hello PSmith,
There is no CSS setting for character limits. I'm sure there is a js that can do it.

I think about the only thing you could do with CSS is a min/max height/width setting.

Excavator
11-08-2009, 11:33 PM
Here's one that does it in a form - http://www.mediacollege.com/internet/javascript/form/limit-characters.html

Maybe it could be adapted to limit your p tags?

tejas
11-09-2009, 06:38 AM
Do you want to do this in WordPress? It depends on the blog theme and you will need to modify it