Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Character limit in paragraph

    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

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,743
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    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.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,743
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Here's one that does it in a form - http://www.mediacollege.com/internet...haracters.html

    Maybe it could be adapted to limit your p tags?
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    8
    Thanks
    1
    Thanked 1 Time in 1 Post
    Do you want to do this in WordPress? It depends on the blog theme and you will need to modify it


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •